aboutsummaryrefslogtreecommitdiff
path: root/pcap-linux.c
diff options
context:
space:
mode:
authorguy <guy>2001-01-14 05:30:07 +0000
committerguy <guy>2001-01-14 05:30:07 +0000
commitc3c2ed00d58f23eeac3229e672ee16c1176bd3e6 (patch)
tree50d80cfebdd8cccc44f211633d1c8cce6bde2ff3 /pcap-linux.c
parent2b3dac284e25434f15da7f9d7f1d66cbecb1df88 (diff)
Generate code to check for LLC SAP values on Linux cooked captures.
Set "off_linktype" to the correct value for the offset of the Ethernet type field in the fake header for Linux cooked captures, so that the correct code is generated for tests of that field.
Diffstat (limited to 'pcap-linux.c')
-rw-r--r--pcap-linux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pcap-linux.c b/pcap-linux.c
index b5be6ce2..85db81e5 100644
--- a/pcap-linux.c
+++ b/pcap-linux.c
@@ -26,7 +26,7 @@
*/
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/libpcap/pcap-linux.c,v 1.51 2001-01-03 01:06:16 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/pcap-linux.c,v 1.52 2001-01-14 05:30:08 guy Exp $ (LBL)";
#endif
/*
@@ -1304,7 +1304,7 @@ fix_offset(struct bpf_insn *p)
* header.
*/
p->k -= SLL_HDR_LEN;
- } else if (p->k == 2) {
+ } else if (p->k == 14) {
/*
* It's the protocol field; map it to the special magic
* kernel offset for that field.