diff --git a/main.cpp b/main.cpp index 614369b..0934e0c 100755 --- a/main.cpp +++ b/main.cpp @@ -379,7 +379,7 @@ void init_filter(int port) //printf("<%d>\n",bpf.len); int dummy; - int ret=setsockopt(raw_recv_fd, SOL_SOCKET, SO_DETACH_FILTER, &dummy, sizeof(int)); + int ret=setsockopt(raw_recv_fd, SOL_SOCKET, SO_DETACH_FILTER, &dummy, sizeof(dummy)); if (ret != 0) { printf("error remove fiter\n"); diff --git a/makefile b/makefile index d61aa6d..8753679 100755 --- a/makefile +++ b/makefile @@ -3,5 +3,5 @@ all: killall raw||true sleep 1 g++ main.cpp -o raw -static -lrt -ggdb -I. aes.c md5.c encrypt.cpp -O3 -# ${ccmips} main.cpp -o rawmips -static -lgcc_eh -lrt + ${ccmips} main.cpp -o rawmips -static -lrt -ggdb -I. aes.c md5.c encrypt.cpp -O3