diff options
author | obrien <obrien@FreeBSD.org> | 2000-02-01 05:13:55 +0800 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2000-02-01 05:13:55 +0800 |
commit | f90dadee5aaaa028e6dc6260da96136f9c61c445 (patch) | |
tree | 164d22015b9d92120982d0ee2f6d16663e383304 /net | |
parent | 095bf9ffc7156172bd2a6a3cbf40fe9569212d2c (diff) | |
download | freebsd-ports-gnome-f90dadee5aaaa028e6dc6260da96136f9c61c445.tar.gz freebsd-ports-gnome-f90dadee5aaaa028e6dc6260da96136f9c61c445.tar.zst freebsd-ports-gnome-f90dadee5aaaa028e6dc6260da96136f9c61c445.zip |
GNU configure is setting up PCAP_RESTART to use yyrestart. yyrestart in the
pcap library requires a FILE * argument, ngrep is called it with none.
Submitted by: Barry Lustig <barry@lustig.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/ngrep/files/patch-ngrep.c | 19 |
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); |