aboutsummaryrefslogtreecommitdiffstats
path: root/net/ngrep/files/patch-ngrep.c
blob: 1310923e3c8f312f6467bc40f7693d08e6e77221 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);