mirror of
https://github.com/wangyu-/udp2raw.git
synced 2025-01-31 20:29:36 +08: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);
|
//printf("<%d>\n",bpf.len);
|
||||||
int dummy;
|
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)
|
if (ret != 0)
|
||||||
{
|
{
|
||||||
printf("error remove fiter\n");
|
printf("error remove fiter\n");
|
||||||
|
2
makefile
2
makefile
@ -3,5 +3,5 @@ all:
|
|||||||
killall raw||true
|
killall raw||true
|
||||||
sleep 1
|
sleep 1
|
||||||
g++ main.cpp -o raw -static -lrt -ggdb -I. aes.c md5.c encrypt.cpp -O3
|
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…
x
Reference in New Issue
Block a user