freebsd11_network: adapt code based on needs of the ipro100 R11.1 driver.
This commit is contained in:
parent
f57e467bd8
commit
5dc915bd4d
@ -18,6 +18,7 @@
|
||||
#include <compat/sys/kernel.h>
|
||||
#include <compat/sys/taskqueue.h>
|
||||
|
||||
#include <compat/net/bpf.h>
|
||||
#include <compat/net/ethernet.h>
|
||||
#include <compat/net/if.h>
|
||||
#include <compat/net/if_arp.h>
|
||||
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user