Mercurial > dropbear
comparison dbutil.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 | 01eea88963f3 |
comparison
equal
deleted
inserted
replaced
1032:0da8ba489c23 | 1033:ca71904cf3ee |
---|---|
63 extern int debug_trace; | 63 extern int debug_trace; |
64 #endif | 64 #endif |
65 | 65 |
66 char * stripcontrol(const char * text); | 66 char * stripcontrol(const char * text); |
67 | 67 |
68 #if defined(__linux__) && HAVE_SENDMSG | |
69 #define DROPBEAR_TCP_FAST_OPEN | |
70 void set_listen_fast_open(int sock); | |
71 /* may be supported by kernel but not libc */ | |
72 #ifndef TCP_FASTOPEN | |
73 #define TCP_FASTOPEN 23 | |
74 #endif | |
75 #ifndef MSG_FASTOPEN | |
76 #define MSG_FASTOPEN 0x20000000 | |
77 #endif | |
78 #endif | |
79 | |
80 int spawn_command(void(*exec_fn)(void *user_data), void *exec_data, | 68 int spawn_command(void(*exec_fn)(void *user_data), void *exec_data, |
81 int *writefd, int *readfd, int *errfd, pid_t *pid); | 69 int *writefd, int *readfd, int *errfd, pid_t *pid); |
82 void run_shell_command(const char* cmd, unsigned int maxfd, char* usershell); | 70 void run_shell_command(const char* cmd, unsigned int maxfd, char* usershell); |
83 #ifdef ENABLE_CONNECT_UNIX | 71 #ifdef ENABLE_CONNECT_UNIX |
84 int connect_unix(const char* addr); | 72 int connect_unix(const char* addr); |