Skip to content

Commit

Permalink
dhclient: skip 1, not 2 it seems
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Dec 30, 2017
1 parent c005691 commit f841d1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sbin/dhclient/bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ struct bpf_insn dhcp_bpf_wfilter[] = {

/* Test whether this is a VLAN packet... */
BPF_STMT(BPF_LD + BPF_B + BPF_IND, 12),
BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, ETHERTYPE_VLAN, 0, 2),
BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, ETHERTYPE_VLAN, 0, 1),

/* Correct the packet index for VLAN... */
BPF_STMT(BPF_LDX + BPF_W + BPF_IMM, 4),
Expand Down

0 comments on commit f841d1d

Please sign in to comment.