aboutsummaryrefslogtreecommitdiff
path: root/pcap-linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'pcap-linux.c')
-rw-r--r--pcap-linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcap-linux.c b/pcap-linux.c
index 57c6d9e7..4b0ed690 100644
--- a/pcap-linux.c
+++ b/pcap-linux.c
@@ -7177,7 +7177,7 @@ fix_offset(pcap_t *handle, struct bpf_insn *p)
* filter is concerned, so subtract the length of
* the link-layer header.
*/
- p->k -= SLL_HDR_LEN;
+ p->k -= SLL2_HDR_LEN;
} else if (p->k == 0) {
/*
* It's the protocol field; map it to the