summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2018-05-06 10:11:44 +0100
committerRoy Marples <roy@marples.name>2018-05-06 10:11:44 +0100
commit51ac565dafd1f5f6afe95a5d3b6a4a4d7d64f8ae (patch)
tree46d78347e6ba0631f3c2b396caa3c00fee41cf65
parenta979907b7d6ad0687c4e354f119760c35134af55 (diff)
downloaddhcpcd-51ac565dafd1f5f6afe95a5d3b6a4a4d7d64f8ae.tar.xz
bpf: Clarify ip_hl check.
-rw-r--r--src/bpf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bpf.c b/src/bpf.c
index b99e8c24..5a4d3c1d 100644
--- 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),