summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorroam <roam@FreeBSD.org>2002-03-26 12:04:44 +0000
committerroam <roam@FreeBSD.org>2002-03-26 12:04:44 +0000
commitbef5195c93f502f15c1d172d867ca85e29445161 (patch)
tree6f8af137de821aeb76a07cb4084156e7e9857952 /net
parent1f2edaf5e7b2a762fdd73a5c0c21af99fc15e68b (diff)
downloadFreeBSD-ports-bef5195c93f502f15c1d172d867ca85e29445161.zip
FreeBSD-ports-bef5195c93f502f15c1d172d867ca85e29445161.tar.gz
Add a patch allowing libnids to correctly capture packets on
the loopback interface. Submitted by: nectar Ignored by: roam (myself) for over 6 months
Diffstat (limited to 'net')
-rw-r--r--net/libnids/Makefile1
-rw-r--r--net/libnids/files/patch-src::libnids.c12
2 files changed, 13 insertions, 0 deletions
diff --git a/net/libnids/Makefile b/net/libnids/Makefile
index 37492fe..6814848 100644
--- a/net/libnids/Makefile
+++ b/net/libnids/Makefile
@@ -7,6 +7,7 @@
PORTNAME= libnids
PORTVERSION= 1.16
+PORTREVISION= 1
CATEGORIES= net security
MASTER_SITES= http://www.packetfactory.net/projects/libnids/dist/
diff --git a/net/libnids/files/patch-src::libnids.c b/net/libnids/files/patch-src::libnids.c
new file mode 100644
index 0000000..780e77d
--- /dev/null
+++ b/net/libnids/files/patch-src::libnids.c
@@ -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;
OpenPOWER on IntegriCloud