comparison netio.h @ 1084:2265d7ebfdeb

separate client/server fastopen options
author Matt Johnston <matt@ucc.asn.au>
date Fri, 29 May 2015 23:19:11 +0800
parents 686cd3e8e13e
children 9169e4e7cbee
comparison
equal deleted inserted replaced
1083:8e0280986710 1084:2265d7ebfdeb
46 /* TODO: writev #ifdef guard */ 46 /* TODO: writev #ifdef guard */
47 /* Fills out iov which contains iov_count slots, returning the number filled in iov_count */ 47 /* Fills out iov which contains iov_count slots, returning the number filled in iov_count */
48 void packet_queue_to_iovec(struct Queue *queue, struct iovec *iov, unsigned int *iov_count); 48 void packet_queue_to_iovec(struct Queue *queue, struct iovec *iov, unsigned int *iov_count);
49 void packet_queue_consume(struct Queue *queue, ssize_t written); 49 void packet_queue_consume(struct Queue *queue, ssize_t written);
50 50
51 #ifdef DROPBEAR_TCP_FAST_OPEN 51 #ifdef DROPBEAR_SERVER_TCP_FAST_OPEN
52 /* Try for any Linux builds, will fall back if the kernel doesn't support it */ 52 /* Try for any Linux builds, will fall back if the kernel doesn't support it */
53 void set_listen_fast_open(int sock); 53 void set_listen_fast_open(int sock);
54 /* Define values which may be supported by the kernel even if the libc is too old */ 54 /* Define values which may be supported by the kernel even if the libc is too old */
55 #ifndef TCP_FASTOPEN 55 #ifndef TCP_FASTOPEN
56 #define TCP_FASTOPEN 23 56 #define TCP_FASTOPEN 23