summaryrefslogtreecommitdiffhomepage
path: root/dbutil.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2015-02-15 22:34:05 +0800
committerMatt Johnston <matt@ucc.asn.au>2015-02-15 22:34:05 +0800
commit28f61c8b3a2015fdf07755ed8797a47eb0508887 (patch)
tree15173b559a01c121a2cb4b61b3fcb602056b1324 /dbutil.h
parent9abcc7b909b6ff0f173405e73dc7c0c3d093e44a (diff)
tcp fastopen for the server
--HG-- branch : fastopen
Diffstat (limited to 'dbutil.h')
-rw-r--r--dbutil.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/dbutil.h b/dbutil.h
index 9feec2d..eb630a7 100644
--- a/dbutil.h
+++ b/dbutil.h
@@ -75,6 +75,12 @@ void getaddrstring(struct sockaddr_storage* addr,
char **ret_host, char **ret_port, int host_lookup);
void set_sock_nodelay(int sock);
void set_sock_priority(int sock, enum dropbear_prio prio);
+
+#ifdef __linux__
+#define DROPBEAR_TCP_FAST_OPEN
+void set_listen_fast_open(int sock);
+#endif
+
int dropbear_listen(const char* address, const char* port,
int *socks, unsigned int sockcount, char **errstring, int *maxfd);
int spawn_command(void(*exec_fn)(void *user_data), void *exec_data,