Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Make bpf_setf static
details: https://anonhg.NetBSD.org/src/rev/7c9659a2a688
branches: trunk
changeset: 350824:7c9659a2a688
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Mon Jan 23 10:17:36 2017 +0000
description:
Make bpf_setf static
diffstat:
sys/net/bpf.c | 7 ++++---
sys/net/bpfdesc.h | 6 +-----
2 files changed, 5 insertions(+), 8 deletions(-)
diffs (53 lines):
diff -r ca350c5d2efb -r 7c9659a2a688 sys/net/bpf.c
--- a/sys/net/bpf.c Mon Jan 23 10:05:25 2017 +0000
+++ b/sys/net/bpf.c Mon Jan 23 10:17:36 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bpf.c,v 1.203 2016/07/19 02:47:45 pgoyette Exp $ */
+/* $NetBSD: bpf.c,v 1.204 2017/01/23 10:17:36 ozaki-r Exp $ */
/*
* Copyright (c) 1990, 1991, 1993
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bpf.c,v 1.203 2016/07/19 02:47:45 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bpf.c,v 1.204 2017/01/23 10:17:36 ozaki-r Exp $");
#if defined(_KERNEL_OPT)
#include "opt_bpf.h"
@@ -144,6 +144,7 @@
static void bpf_attachd(struct bpf_d *, struct bpf_if *);
static void bpf_detachd(struct bpf_d *);
static int bpf_setif(struct bpf_d *, struct ifreq *);
+static int bpf_setf(struct bpf_d *, struct bpf_program *);
static void bpf_timed_out(void *);
static inline void
bpf_wakeup(struct bpf_d *);
@@ -1101,7 +1102,7 @@
* Set d's packet filter program to fp. If this file already has a filter,
* free it and replace it. Returns EINVAL for bogus requests.
*/
-int
+static int
bpf_setf(struct bpf_d *d, struct bpf_program *fp)
{
struct bpf_insn *fcode, *old;
diff -r ca350c5d2efb -r 7c9659a2a688 sys/net/bpfdesc.h
--- a/sys/net/bpfdesc.h Mon Jan 23 10:05:25 2017 +0000
+++ b/sys/net/bpfdesc.h Mon Jan 23 10:17:36 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bpfdesc.h,v 1.38 2013/11/15 00:12:44 rmind Exp $ */
+/* $NetBSD: bpfdesc.h,v 1.39 2017/01/23 10:17:36 ozaki-r Exp $ */
/*
* Copyright (c) 1990, 1991, 1993
@@ -141,8 +141,4 @@
struct ifnet *bif_ifp; /* corresponding interface */
};
-#ifdef _KERNEL
-int bpf_setf(struct bpf_d *, struct bpf_program *);
-#endif
-
#endif /* !_NET_BPFDESC_H_ */
Home |
Main Index |
Thread Index |
Old Index