aboutsummaryrefslogtreecommitdiff
path: root/net/ngrep
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2000-01-31 21:13:55 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2000-01-31 21:13:55 +0000
commitea0bdc3c8692bf67bb8cef52524006de23b602e0 (patch)
treeb06b28927ad8765b357d3517d4e19e9f0c7d9840 /net/ngrep
parentf6e116765c20752f69ffaaf166774afb439db65d (diff)
downloadports-ea0bdc3c8692bf67bb8cef52524006de23b602e0.tar.gz
ports-ea0bdc3c8692bf67bb8cef52524006de23b602e0.zip
Notes
Diffstat (limited to 'net/ngrep')
-rw-r--r--net/ngrep/files/patch-ngrep.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/net/ngrep/files/patch-ngrep.c b/net/ngrep/files/patch-ngrep.c
new file mode 100644
index 000000000000..1310923e3c8f
--- /dev/null
+++ b/net/ngrep/files/patch-ngrep.c
@@ -0,0 +1,19 @@
+--- ngrep.c.orig Fri Oct 22 05:21:26 1999
++++ ngrep.c Mon Jan 31 12:58:36 2000
+@@ -59,6 +59,7 @@
+ int link_offset;
+ pcap_t *pd;
+
++extern FILE *yyin;
+
+ int main(int argc, char **argv) {
+ char c;
+@@ -141,7 +142,7 @@
+ free(filter);
+ filter = get_filter(&argv[optind-1]);
+
+- PCAP_RESTART();
++ PCAP_RESTART(yyin);
+ if (pcap_compile(pd,&pcapfilter,filter,0,mask.s_addr)) {
+ pcap_perror(pd,"pcap compile");
+ exit(-1);