summaryrefslogtreecommitdiff
path: root/net/ngrep/files/patch-ngrep.c
blob: 48dc19264eadd13dd5618630048f517c7ed35b58 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- ngrep.c.orig	Wed Aug  8 23:36:09 2001
+++ ngrep.c	Wed Aug  8 23:36:31 2001
@@ -62,6 +62,7 @@
 
 #include "ngrep.h"
 
+extern FILE *yyin;
 
 static char rcsver[] = "$Revision: 1.18 $";
 
@@ -232,7 +233,7 @@
       filter = get_filter(&argv[optind-1]); 
 
 #ifdef NEED_RESTART
-      PCAP_RESTART();
+      PCAP_RESTART(yyin);
 #endif
       if (pcap_compile(pd, &pcapfilter, filter, 0, mask.s_addr)) {
 	pcap_perror(pd, "pcap compile");