| 433 | u_int bpf_filter(const struct bpf_insn *, u_char *, u_int, u_int); |
| 434 | |
| 435 | static __inline int |
| 436 | bpf_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)) \ |
no outgoing calls
no test coverage detected