diff options
| author | Zhenlei Huang <zlei@FreeBSD.org> | 2024-06-07 15:06:08 +0000 |
|---|---|---|
| committer | Zhenlei Huang <zlei@FreeBSD.org> | 2024-06-07 15:06:08 +0000 |
| commit | 0dfd11abc4bd0dcb96a6d287cc4e52e8f59b64c1 (patch) | |
| tree | cbb0472cadfe07c82a92ec80218468b04efc0ed9 /sys/net/bpf.h | |
| parent | 89204d9dcbe28558fae65936a0e93f44d926b88f (diff) | |
Diffstat (limited to 'sys/net/bpf.h')
| -rw-r--r-- | sys/net/bpf.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/net/bpf.h b/sys/net/bpf.h index 0fd7c4105b30..e44a7cd2359d 100644 --- a/sys/net/bpf.h +++ b/sys/net/bpf.h @@ -433,15 +433,13 @@ int bpf_get_bp_params(struct bpf_if *, u_int *, u_int *); void bpfilterattach(int); u_int bpf_filter(const struct bpf_insn *, u_char *, u_int, u_int); -static __inline int +static __inline bool bpf_peers_present(struct bpf_if *bpf) { struct bpf_if_ext *ext; ext = (struct bpf_if_ext *)bpf; - if (!CK_LIST_EMPTY(&ext->bif_dlist)) - return (1); - return (0); + return (!CK_LIST_EMPTY(&ext->bif_dlist)); } #define BPF_TAP(_ifp,_pkt,_pktlen) \ |
