Skip to content

Commit c115392

Browse files
committed
Hurd: fix a comment. [skip ci]
The instruction that terminates a BPF program and indicates how much packet data should be used is BPF_RET, not BPF_MOD.
1 parent d48ccc3 commit c115392

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pcap-hurd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ pcap_read_hurd(pcap_t *p, int cnt _U_, pcap_handler callback, u_char *user)
170170
ETH_HLEN);
171171

172172
/*
173-
* It seems, kernel device filters treat the K in BPF_MOD as a Boolean:
173+
* It seems, kernel device filters treat the K in BPF_RET as a Boolean:
174174
* so long as it is positive, the Mach message will contain the entire
175175
* packet and wirelen will be set accordingly. Thus the caplen value
176176
* for the callback needs to be calculated for every packet no matter

0 commit comments

Comments
 (0)