From c3c2ed00d58f23eeac3229e672ee16c1176bd3e6 Mon Sep 17 00:00:00 2001 From: guy Date: Sun, 14 Jan 2001 05:30:07 +0000 Subject: 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. --- pcap-linux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pcap-linux.c') 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. -- cgit v1.2.3