diff options
author | wpaul <wpaul@FreeBSD.org> | 2000-04-27 15:11:41 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 2000-04-27 15:11:41 +0000 |
commit | 63e31a38dc785aa78feafd9cc78ac872e3409bc8 (patch) | |
tree | b7e324302454f8ff8d1730628aacfa5f6c99f3a2 | |
parent | a523934af1fff7e66ab046986e95fa77b3724e7d (diff) | |
download | FreeBSD-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
-rw-r--r-- | sys/net/bpf.c | 6 |
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; |