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:
Ka Ho Ng 2025-09-03 17:59:01 +00:00 committed by Franco Fichtner
parent d98887c2f6
commit c63ca22395
2 changed files with 14 additions and 0 deletions

View file

@ -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)
{

View file

@ -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);