Add a patch allowing libnids to correctly capture packets on

the loopback interface.

Submitted by:	nectar
Ignored by:	roam (myself) for over 6 months
This commit is contained in:
Peter Pentchev 2002-03-26 12:04:44 +00:00
parent 3955ff88ad
commit e680cdc4a5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=56693
2 changed files with 13 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= libnids
PORTVERSION= 1.16
PORTREVISION= 1
CATEGORIES= net security
MASTER_SITES= http://www.packetfactory.net/projects/libnids/dist/

View File

@ -0,0 +1,12 @@
--- 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;