openbsd-ports/net/libnids/patches/patch-src_libnids_c

34 lines
896 B
Plaintext

$OpenBSD: patch-src_libnids_c,v 1.2 2006/01/29 21:27:52 brad Exp $
--- src/libnids.c.orig Sat Jan 29 05:03:24 2005
+++ src/libnids.c Sun Jan 29 13:43:53 2006
@@ -214,6 +214,7 @@ static void pcap_hand(u_char * par, stru
#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,7 +471,12 @@ 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;