summaryrefslogtreecommitdiff
path: root/net/iplog/files/patch-src_iplog_pcap.c
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-07-29 01:59:16 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-07-29 01:59:16 +0000
commit69ea23ed7175d5c34a21bba1ef9262f311c69284 (patch)
treee2e604e83659be7f58596e80b3cf18e9d7d06dae /net/iplog/files/patch-src_iplog_pcap.c
parentStage net-mgmt/routers2 and cleanup (diff)
Rename net/ patch-xy patches to reflect the files they modify.
Approve by: portmgr (not really, but one of these is modifying an unstaged port)
Notes
Notes: svn path=/head/; revision=363285
Diffstat (limited to 'net/iplog/files/patch-src_iplog_pcap.c')
-rw-r--r--net/iplog/files/patch-src_iplog_pcap.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/net/iplog/files/patch-src_iplog_pcap.c b/net/iplog/files/patch-src_iplog_pcap.c
new file mode 100644
index 000000000000..4a87bef4a53a
--- /dev/null
+++ b/net/iplog/files/patch-src_iplog_pcap.c
@@ -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__
+ /*