ports/net/libnids/files/patch-src::libnids.c
Peter Pentchev e680cdc4a5 Add a patch allowing libnids to correctly capture packets on
the loopback interface.

Submitted by:	nectar
Ignored by:	roam (myself) for over 6 months
2002-03-26 12:04:44 +00:00

12 lines
285 B
C

--- src/libnids.c.orig Tue Oct 9 21:13:12 2001
+++ src/libnids.c Tue Oct 9 21:13:38 2001
@@ -369,6 +369,9 @@
return 0;
}
switch ((linktype = pcap_datalink(desc))) {
+ case DLT_NULL:
+ linkoffset = 4;
+ break;
case DLT_EN10MB:
linkoffset = 14;
break;