mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
IfAPI: restore KBI after bceb9c2f2b19
This commit restores if_bpfmtap and if_etherbpfmtap functions, and implement them as wrappers around bpf_mtap_if and ether_bpf_mtap_if funcitons. Fixes: bceb9c2f2b19 Sponsored by: Juniper Networks, Inc.
This commit is contained in:
parent
d98887c2f6
commit
c63ca22395
2 changed files with 14 additions and 0 deletions
12
sys/net/if.c
12
sys/net/if.c
|
|
@ -4866,6 +4866,18 @@ if_gethandle(u_char type)
|
|||
return (if_alloc(type));
|
||||
}
|
||||
|
||||
void
|
||||
if_bpfmtap(if_t ifp, struct mbuf *m)
|
||||
{
|
||||
bpf_mtap_if(ifp, m);
|
||||
}
|
||||
|
||||
void
|
||||
if_etherbpfmtap(if_t ifp, struct mbuf *m)
|
||||
{
|
||||
ether_bpf_mtap_if(ifp, m);
|
||||
}
|
||||
|
||||
void
|
||||
if_vlancap(if_t ifp)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -629,6 +629,8 @@ int if_vlantrunkinuse(if_t ifp);
|
|||
caddr_t if_getlladdr(const if_t ifp);
|
||||
struct vnet *if_getvnet(const if_t ifp);
|
||||
void *if_gethandle(u_char);
|
||||
void if_bpfmtap(if_t ifp, struct mbuf *m);
|
||||
void if_etherbpfmtap(if_t ifp, struct mbuf *m);
|
||||
void if_vlancap(if_t ifp);
|
||||
int if_transmit(if_t ifp, struct mbuf *m);
|
||||
void if_init(if_t ifp, void *ctx);
|
||||
|
|
|
|||
Loading…
Reference in a new issue