Mercurial > dropbear
comparison netio.h @ 1295:750ec4ec4cbe
Convert #ifdef to #if, other build changes
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 04 May 2016 15:33:40 +0200 |
parents | 9169e4e7cbee |
children | 06d52bcb8094 |
comparison
equal
deleted
inserted
replaced
1294:56aba7dedbea | 1295:750ec4ec4cbe |
---|---|
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_SERVER_TCP_FAST_OPEN | 51 #if 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 |