From dbdb4e03a0eace5947f91726cf0828a48f3469a9 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Fri, 2 May 2014 23:15:18 -0400 Subject: [PATCH] add TCP_FASTOPEN macros --- src/include.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/include.h b/src/include.h index c5809626..3bd2985e 100644 --- a/src/include.h +++ b/src/include.h @@ -1,6 +1,16 @@ #ifndef _INCLUDE_H #define _INCLUDE_H +/* conditional define for TCP_FASTOPEN */ +#ifndef TCP_FASTOPEN +#define TCP_FASTOPEN 23 +#endif + +/* conditional define for MSG_FASTOPEN */ +#ifndef MSG_FASTOPEN +#define MSG_FASTOPEN 0x20000000 +#endif + int udprelay_init(const char *server_host, const char *server_port, #ifdef UDPRELAY_LOCAL const char *remote_host, const char *remote_port,