diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-07-13 12:41:51 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-07-13 12:41:51 -0700 |
commit | f2f55e81aa8838270aacaefaf4e4ad99b1c6eab9 (patch) | |
tree | 45482332f259827574f76d669b043a5bffdafb2b /pcap-linux.c | |
parent | a1bc985bb6aac4522b6bea725a2ad7e65d6cea0f (diff) |
Fix the adjusting of after-the-SLL2-header loads.
Diffstat (limited to 'pcap-linux.c')
-rw-r--r-- | pcap-linux.c | 2 |
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 |