wangyu 8 years ago
parent
commit
52358117e6
1 changed files with 3 additions and 1 deletions
  1. 3 1
      main.cpp

+ 3 - 1
main.cpp

@@ -241,7 +241,7 @@ tcpdump -i eth1  ip and icmp -dd
 (010) ret      #0
 
  */
-sock_fprog bpf;
+
 
 
 int VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV;
@@ -881,6 +881,8 @@ int init_raw_socket()
 }
 void init_filter(int port)
 {
+	sock_fprog bpf;
+
 	filter_port=port;
 	if(disable_bpf_filter) return;
 	//if(raw_mode==mode_icmp) return ;