summaryrefslogtreecommitdiffstats
path: root/sys/net/bpf.c
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>2000-04-27 15:11:41 +0000
committerwpaul <wpaul@FreeBSD.org>2000-04-27 15:11:41 +0000
commit63e31a38dc785aa78feafd9cc78ac872e3409bc8 (patch)
treeb7e324302454f8ff8d1730628aacfa5f6c99f3a2 /sys/net/bpf.c
parenta523934af1fff7e66ab046986e95fa77b3724e7d (diff)
downloadFreeBSD-src-63e31a38dc785aa78feafd9cc78ac872e3409bc8.zip
FreeBSD-src-63e31a38dc785aa78feafd9cc78ac872e3409bc8.tar.gz
Add a bpfdetach() stub routine to bpf.c. Without this, you'll get an
unresolved symbol error if you try to load a network driver into a kernel which doesn't have bpf enabled. Forgotten by: rwatson Found by: peter
Diffstat (limited to 'sys/net/bpf.c')
-rw-r--r--sys/net/bpf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c
index 9d562e4..6c08190 100644
--- a/sys/net/bpf.c
+++ b/sys/net/bpf.c
@@ -1392,6 +1392,12 @@ bpfattach(ifp, dlt, hdrlen)
{
}
+void
+bpfdetach(ifp)
+ struct ifnet *ifp;
+{
+}
+
u_int
bpf_filter(pc, p, wirelen, buflen)
register const struct bpf_insn *pc;
OpenPOWER on IntegriCloud