MCPcopy Index your code
hub / github.com/F-Stack/f-stack / bpfattach

Function bpfattach

freebsd/net/bpf.c:2669–2674  ·  view source on GitHub ↗

* Attach an interface to bpf. dlt is the link layer type; hdrlen is the * fixed size of the link header (variable length headers not yet supported). */

Source from the content-addressed store, hash-verified

2667 * fixed size of the link header (variable length headers not yet supported).
2668 */
2669void
2670bpfattach(struct ifnet *ifp, u_int dlt, u_int hdrlen)
2671{
2672
2673 bpfattach2(ifp, dlt, hdrlen, &ifp->if_bpf);
2674}
2675
2676/*
2677 * Attach an interface to bpf. ifp is a pointer to the structure

Callers 15

pflog_clone_createFunction · 0.85
pfsync_clone_createFunction · 0.85
ipfw_clone_createFunction · 0.85
ipfwlog_clone_createFunction · 0.85
iflib_pseudo_registerFunction · 0.85
if_vmoveFunction · 0.85
stf_clone_createFunction · 0.85
gre_clone_createFunction · 0.85
ether_ifattachFunction · 0.85
firewire_ifattachFunction · 0.85
enc_clone_createFunction · 0.85
me_clone_createFunction · 0.85

Calls 1

bpfattach2Function · 0.85

Tested by

no test coverage detected