diff dbutil.h @ 1030:1fff5d7163f6 fastopen

merge
author Matt Johnston <matt@ucc.asn.au>
date Thu, 19 Feb 2015 22:42:30 +0800
parents 5ad81aa19c2d
children 0da8ba489c23
line wrap: on
line diff
--- a/dbutil.h	Thu Feb 19 22:41:51 2015 +0800
+++ b/dbutil.h	Thu Feb 19 22:42:30 2015 +0800
@@ -80,6 +80,13 @@
 #if defined(__linux__) && HAVE_SENDMSG
 #define DROPBEAR_TCP_FAST_OPEN
 void set_listen_fast_open(int sock);
+/* may be supported by kernel but not libc */
+#ifndef TCP_FASTOPEN
+#define TCP_FASTOPEN 23
+#endif
+#ifndef MSG_FASTOPEN
+#define MSG_FASTOPEN 0x20000000
+#endif
 #endif
 
 int dropbear_listen(const char* address, const char* port,