diff options
author | Matt Johnston <matt@ucc.asn.au> | 2015-02-20 23:38:05 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2015-02-20 23:38:05 +0800 |
commit | f04a3a2cfa6a2787e84b07d6d22cb1e9837ff6af (patch) | |
tree | 0e0fca0c506d49ce51f636237db6f8f89b8cc38f /netio.h | |
parent | 364a53577eb33f20bed877fc5d4a54de829707d8 (diff) |
Fixes for backwards compatibility
--HG--
branch : fastopen
Diffstat (limited to 'netio.h')
-rw-r--r-- | netio.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -42,5 +42,17 @@ void connect_set_writequeue(struct dropbear_progress_connection *c, struct Queue struct iovec * packet_queue_to_iovec(struct Queue *queue, int *ret_iov_count); void packet_queue_consume(struct Queue *queue, ssize_t written); +#ifdef DROPBEAR_TCP_FAST_OPEN +/* Try for any Linux builds, will fall back if the kernel doesn't support it */ +void set_listen_fast_open(int sock); +/* Define values which may be supported by the kernel even if the libc is too old */ +#ifndef TCP_FASTOPEN +#define TCP_FASTOPEN 23 +#endif +#ifndef MSG_FASTOPEN +#define MSG_FASTOPEN 0x20000000 +#endif +#endif + #endif |