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:
parent
3955ff88ad
commit
e680cdc4a5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=56693
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= libnids
|
||||
PORTVERSION= 1.16
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net security
|
||||
MASTER_SITES= http://www.packetfactory.net/projects/libnids/dist/
|
||||
|
||||
|
12
net/libnids/files/patch-src::libnids.c
Normal file
12
net/libnids/files/patch-src::libnids.c
Normal 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;
|
Loading…
Reference in New Issue
Block a user