Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108635606
D45509.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
510 B
Referenced Files
None
Subscribers
None
D45509.diff
View Options
diff --git a/sys/net/bpf.h b/sys/net/bpf.h
--- a/sys/net/bpf.h
+++ b/sys/net/bpf.h
@@ -433,15 +433,13 @@
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) \
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 28, 12:37 AM (9 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16227864
Default Alt Text
D45509.diff (510 B)
Attached To
Mode
D45509: bpf: Make bpf_peers_present a boolean inline function
Attached
Detach File
Event Timeline
Log In to Comment