aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/libpcap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-01-29 08:55:24 +0000
committerGuy Harris <guy@alum.mit.edu>2002-01-29 08:55:24 +0000
commit5cf3587feba3e8d0a897d6a88ac8685cea5837b3 (patch)
tree0b090b66f0ab477154c21dff8d09916f2251e521 /wiretap/libpcap.c
parentc873f79156f1ad7cd04168d9dca7d3a322c7ae3f (diff)
Support a libpcap link-layer type of 17 as DLT_PFLOG unless DLT_LANE8023
is defined as 17. svn path=/trunk/; revision=4617
Diffstat (limited to 'wiretap/libpcap.c')
-rw-r--r--wiretap/libpcap.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/wiretap/libpcap.c b/wiretap/libpcap.c
index b4c1bad05c..c77af6f9fb 100644
--- a/wiretap/libpcap.c
+++ b/wiretap/libpcap.c
@@ -1,6 +1,6 @@
/* libpcap.c
*
- * $Id: libpcap.c,v 1.63 2002/01/29 08:44:53 guy Exp $
+ * $Id: libpcap.c,v 1.64 2002/01/29 08:55:24 guy Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
@@ -231,9 +231,10 @@ static const struct {
* 17 is DLT_LANE8023 in SuSE 6.3 libpcap; we don't currently
* handle it.
* It is also used as the PF (Packet Filter) logging format beginning
- * with OpenBSD 3.0.
+ * with OpenBSD 3.0; we use 17 for PF logs unless DLT_LANE8023 is
+ * defined with the value 17.
*/
-#if defined(DLT_PFLOG) && (DLT_PFLOG == 17)
+#if !defined(DLT_LANE8023) || (DLT_LANE8023 != 17)
{ 17, WTAP_ENCAP_PFLOG },
#endif