diff options
author | zfl9 <zfl9.com@gmail.com> | 2020-03-04 21:23:20 +0800 |
---|---|---|
committer | zfl9 <zfl9.com@gmail.com> | 2020-03-04 21:23:20 +0800 |
commit | c737e4fe741426c7c97fe8a28aea5c6fb46e7213 (patch) | |
tree | 66b24eba1bda13dbb5245378164d8ab349797abc | |
parent | use libev instead of libuv (diff) | |
download | dns2tcp-c737e4fe741426c7c97fe8a28aea5c6fb46e7213.tar.gz dns2tcp-c737e4fe741426c7c97fe8a28aea5c6fb46e7213.tar.bz2 dns2tcp-c737e4fe741426c7c97fe8a28aea5c6fb46e7213.zip |
use libev instead of libuv
-rw-r--r-- | dnsudp2tcp.c | 16 | ||||
-rwxr-xr-x | test | bin | 67328 -> 0 bytes |
2 files changed, 16 insertions, 0 deletions
diff --git a/dnsudp2tcp.c b/dnsudp2tcp.c index 974e97d..f76b9f9 100644 --- a/dnsudp2tcp.c +++ b/dnsudp2tcp.c @@ -19,6 +19,22 @@ #define DNS2TCP_VER "dns2tcp v1.1.0" +#ifndef IPV6_V6ONLY + #define IPV6_V6ONLY 26 +#endif +#ifndef SO_REUSEPORT + #define SO_REUSEPORT 15 +#endif +#ifndef TCP_QUICKACK + #define TCP_QUICKACK 12 +#endif +#ifndef TCP_SYNCNT + #define TCP_SYNCNT 7 +#endif +#ifndef MSG_FASTOPEN + #define MSG_FASTOPEN 0x20000000 +#endif + #define IP4STRLEN INET_ADDRSTRLEN /* ipv4addr max strlen */ #define IP6STRLEN INET6_ADDRSTRLEN /* ipv6addr max strlen */ #define PORTSTRLEN 6 /* "65535", include the null character */ Binary files differ |