From 5dc915bd4dccb0e30d12766a23aae3ec06532382 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Sat, 18 Nov 2017 18:13:33 +0100 Subject: [PATCH] freebsd11_network: adapt code based on needs of the ipro100 R11.1 driver. --- src/libs/compat/freebsd11_network/if.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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) -- 2.11.4.GIT