comparison netio.h @ 1033:ca71904cf3ee fastopen

Fixes for backwards compatibility
author Matt Johnston <matt@ucc.asn.au>
date Fri, 20 Feb 2015 23:38:05 +0800
parents 0da8ba489c23
children c2a50c9f509e
comparison
equal deleted inserted replaced
1032:0da8ba489c23 1033:ca71904cf3ee
40 40
41 /* TODO: writev #ifdef guard */ 41 /* TODO: writev #ifdef guard */
42 struct iovec * packet_queue_to_iovec(struct Queue *queue, int *ret_iov_count); 42 struct iovec * packet_queue_to_iovec(struct Queue *queue, int *ret_iov_count);
43 void packet_queue_consume(struct Queue *queue, ssize_t written); 43 void packet_queue_consume(struct Queue *queue, ssize_t written);
44 44
45 #ifdef DROPBEAR_TCP_FAST_OPEN
46 /* Try for any Linux builds, will fall back if the kernel doesn't support it */
47 void set_listen_fast_open(int sock);
48 /* Define values which may be supported by the kernel even if the libc is too old */
49 #ifndef TCP_FASTOPEN
50 #define TCP_FASTOPEN 23
51 #endif
52 #ifndef MSG_FASTOPEN
53 #define MSG_FASTOPEN 0x20000000
54 #endif
45 #endif 55 #endif
46 56
57 #endif
58