]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
bpf: Clarify ip_hl check.
authorRoy Marples <roy@marples.name>
Sun, 6 May 2018 09:11:44 +0000 (10:11 +0100)
committerRoy Marples <roy@marples.name>
Sun, 6 May 2018 09:11:44 +0000 (10:11 +0100)
src/bpf.c

index b99e8c2479ed91e60a574a5b03deb4ed763f82d8..5a4d3c1d373880dd9742a121c00d6e9ae208ae41 100644 (file)
--- a/src/bpf.c
+++ b/src/bpf.c
@@ -540,7 +540,7 @@ static const struct bpf_insn bpf_bootp_ether[] = {
 #define BPF_BOOTP_ETHER_LEN    __arraycount(bpf_bootp_ether)
 
 static const struct bpf_insn bpf_bootp_filter[] = {
-       /* Make sure it's an IPv4 packet. */
+       /* Make sure it's an optionless IPv4 packet. */
        BPF_STMT(BPF_LD + BPF_B + BPF_IND, 0),
        BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, 0x45, 1, 0),
        BPF_STMT(BPF_RET + BPF_K, 0),