comparison dbutil.h @ 941:5daedffd0769

Set tcp priority as follows: if (connecting || ptys || x11) tos = LOWDELAY; else if (tcp_forwards) tos = 0; else tos = BULK; TCP forwards could be either lowdelay or bulk, hence the default priority.
author Matt Johnston <matt@ucc.asn.au>
date Wed, 16 Jul 2014 22:53:32 +0800
parents 7cd89d4e0335
children f92eb625c48d
comparison
equal deleted inserted replaced
940:e9dfb6d15193 941:5daedffd0769
60 void printmpint(const char *label, mp_int *mp); 60 void printmpint(const char *label, mp_int *mp);
61 extern int debug_trace; 61 extern int debug_trace;
62 #endif 62 #endif
63 63
64 enum dropbear_prio { 64 enum dropbear_prio {
65 DROPBEAR_PRIO_DEFAULT, 65 DROPBEAR_PRIO_DEFAULT = 'dffd',
66 DROPBEAR_PRIO_LOWDELAY, 66 DROPBEAR_PRIO_LOWDELAY = 'lddl',
67 DROPBEAR_PRIO_BULK, 67 DROPBEAR_PRIO_BULK = 'bllb',
68 }; 68 };
69 69
70 char * stripcontrol(const char * text); 70 char * stripcontrol(const char * text);
71 void get_socket_address(int fd, char **local_host, char **local_port, 71 void get_socket_address(int fd, char **local_host, char **local_port,
72 char **remote_host, char **remote_port, int host_lookup); 72 char **remote_host, char **remote_port, int host_lookup);