4891dd13c2
From Brad.
42 lines
1.1 KiB
Plaintext
42 lines
1.1 KiB
Plaintext
$OpenBSD: patch-src_libnids_c,v 1.3 2008/01/16 21:02:49 kili Exp $
|
|
--- src/libnids.c.orig Sat Jan 29 05:03:24 2005
|
|
+++ src/libnids.c Mon Nov 5 04:30:05 2007
|
|
@@ -214,6 +214,7 @@ static void pcap_hand(u_char * par, struct pcap_pkthdr
|
|
#endif
|
|
#ifdef DLT_IEEE802_11
|
|
case DLT_IEEE802_11:
|
|
+ case DLT_IEEE802_11_RADIO:
|
|
/* I don't know why frame control is always little endian, but it
|
|
* works for tcpdump, so who am I to complain? (wam)
|
|
*/
|
|
@@ -462,6 +463,7 @@ int nids_init()
|
|
case DLT_PRISM_HEADER:
|
|
#endif
|
|
case DLT_IEEE802_11:
|
|
+ case DLT_IEEE802_11_RADIO:
|
|
/* wireless, need to calculate offset per frame */
|
|
break;
|
|
#endif
|
|
@@ -469,12 +471,20 @@ int nids_init()
|
|
case DLT_NULL:
|
|
linkoffset = 4;
|
|
break;
|
|
-#endif
|
|
+#endif
|
|
+#ifdef DLT_LOOP
|
|
+ case DLT_LOOP:
|
|
+ linkoffset = 4;
|
|
+ break;
|
|
+#endif
|
|
case DLT_EN10MB:
|
|
linkoffset = 14;
|
|
break;
|
|
case DLT_PPP:
|
|
linkoffset = 4;
|
|
+ break;
|
|
+ case DLT_PPP_ETHER:
|
|
+ linkoffset = 8;
|
|
break;
|
|
/* Token Ring Support by vacuum@technotronic.com, thanks dugsong! */
|
|
case DLT_IEEE802:
|