mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 02:32:47 +00:00
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
This commit is contained in:
parent
cb4860b709
commit
da626c171a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=59696
@ -1392,6 +1392,12 @@ bpfattach(ifp, dlt, hdrlen)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
bpfdetach(ifp)
|
||||||
|
struct ifnet *ifp;
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
u_int
|
u_int
|
||||||
bpf_filter(pc, p, wirelen, buflen)
|
bpf_filter(pc, p, wirelen, buflen)
|
||||||
register const struct bpf_insn *pc;
|
register const struct bpf_insn *pc;
|
||||||
|
Loading…
Reference in New Issue
Block a user