diff --git a/src/libs/compat/freebsd11_network/if.c b/src/libs/compat/freebsd11_network/if.c index e609912cdd..723f0dc4e2 100644 --- a/src/libs/compat/freebsd11_network/if.c +++ b/src/libs/compat/freebsd11_network/if.c @@ -18,6 +18,7 @@ #include #include +#include #include #include #include @@ -1310,6 +1311,13 @@ if_gethandle(u_char type) return (if_alloc(type)); } +void +if_bpfmtap(if_t ifh, struct mbuf *m) +{ + struct ifnet *ifp = (struct ifnet *)ifh; + + BPF_MTAP(ifp, m); +} void if_etherbpfmtap(if_t ifh, struct mbuf *m)