mirror of
https://github.com/wangyu-/udp2raw.git
synced 2024-06-16 03:59:13 +00:00
trival
This commit is contained in:
parent
dab787a5dc
commit
073bc8baa3
2
main.cpp
2
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");
|
||||
|
2
makefile
2
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user