From 52358117e6cabaa3a6f6be345167e9180c9e10b6 Mon Sep 17 00:00:00 2001 From: wangyu Date: Fri, 28 Jul 2017 00:31:10 +0800 Subject: [PATCH] trival --- main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 420fa65..7e4ec65 100755 --- a/main.cpp +++ b/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 ;