MCPcopy Create free account
hub / github.com/F-Stack/f-stack / bpf_peers_present

Function bpf_peers_present

freebsd/net/bpf.h:435–444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

433u_int bpf_filter(const struct bpf_insn *, u_char *, u_int, u_int);
434
435static __inline int
436bpf_peers_present(struct bpf_if *bpf)
437{
438 struct bpf_if_ext *ext;
439
440 ext = (struct bpf_if_ext *)bpf;
441 if (!CK_LIST_EMPTY(&ext->bif_dlist))
442 return (1);
443 return (0);
444}
445
446#define BPF_TAP(_ifp,_pkt,_pktlen) do { \
447 if (bpf_peers_present((_ifp)->if_bpf)) \

Callers 12

stf_outputFunction · 0.70
in_stf_inputFunction · 0.70
firewire_outputFunction · 0.70
firewire_inputFunction · 0.70
enc_bpftapFunction · 0.70
gif_inputFunction · 0.70
tunoutputFunction · 0.70
if_simloopFunction · 0.70
discoutputFunction · 0.70
bpf_trackFunction · 0.50
ctf_process_inbound_rawFunction · 0.50
ng_iface_bpftapFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected