aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar zfl9 <zfl9.com@gmail.com> 2020-03-04 21:23:20 +0800
committerGravatar zfl9 <zfl9.com@gmail.com> 2020-03-04 21:23:20 +0800
commitc737e4fe741426c7c97fe8a28aea5c6fb46e7213 (patch)
tree66b24eba1bda13dbb5245378164d8ab349797abc
parentuse libev instead of libuv (diff)
downloaddns2tcp-c737e4fe741426c7c97fe8a28aea5c6fb46e7213.tar.gz
dns2tcp-c737e4fe741426c7c97fe8a28aea5c6fb46e7213.tar.bz2
dns2tcp-c737e4fe741426c7c97fe8a28aea5c6fb46e7213.zip
use libev instead of libuv
-rw-r--r--dnsudp2tcp.c16
-rwxr-xr-xtestbin67328 -> 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 */
diff --git a/test b/test
deleted file mode 100755
index d025dee..0000000
--- a/test
+++ /dev/null
Binary files differ