mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Workaround for FreeBSD > 4.2
Change maintainer's email PR: 30133 Submitted by: maintainer
This commit is contained in:
parent
76f3684ac6
commit
68ac83f0bf
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=47244
2 changed files with 26 additions and 1 deletions
|
@ -7,12 +7,13 @@
|
|||
|
||||
PORTNAME= iplog
|
||||
PORTVERSION= 2.2.3
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net security
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
|
||||
http://misc.ojnk.net/~odin/stuff/
|
||||
MASTER_SITE_SUBDIR= ojnk
|
||||
|
||||
MAINTAINER= ust@cert.siemens.de
|
||||
MAINTAINER= udo.schweigert@siemens.com
|
||||
|
||||
USE_GMAKE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
|
|
24
net/iplog/files/patch-ae
Normal file
24
net/iplog/files/patch-ae
Normal file
|
@ -0,0 +1,24 @@
|
|||
--- src/iplog_pcap.c.orig Mon Jan 1 17:02:14 2001
|
||||
+++ src/iplog_pcap.c Mon Aug 27 16:38:50 2001
|
||||
@@ -211,6 +211,7 @@
|
||||
u_char fstring[1024], *temp, errbuf[PCAP_ERRBUF_SIZE];
|
||||
struct bpf_program filt;
|
||||
u_int i = 0;
|
||||
+ int b = 1;
|
||||
|
||||
pdata->pd =
|
||||
pcap_open_live(pdata->name, SNAPLEN, opt_enabled(PROMISC), 0, errbuf);
|
||||
@@ -229,6 +230,13 @@
|
||||
pcap_close(pdata->pd);
|
||||
return (-1);
|
||||
}
|
||||
+
|
||||
+#ifdef __FreeBSD__
|
||||
+#include <osreldate.h>
|
||||
+#if __FreeBSD_version >= 420001
|
||||
+ ioctl(pcap_fileno(pdata->pd), BIOCIMMEDIATE, &b);
|
||||
+#endif
|
||||
+#endif
|
||||
|
||||
#ifdef __linux__
|
||||
/*
|
Loading…
Add table
Reference in a new issue