comparison session.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 e9dfb6d15193
children 36eacc322e00
comparison
equal deleted inserted replaced
940:e9dfb6d15193 941:5daedffd0769
46 void session_loop(void(*loophandler)()); 46 void session_loop(void(*loophandler)());
47 void session_cleanup(); 47 void session_cleanup();
48 void send_session_identification(); 48 void send_session_identification();
49 void send_msg_ignore(); 49 void send_msg_ignore();
50 50
51 void update_channel_prio();
52
51 const char* get_user_shell(); 53 const char* get_user_shell();
52 void fill_passwd(const char* username); 54 void fill_passwd(const char* username);
53 55
54 /* Server */ 56 /* Server */
55 void svr_session(int sock, int childpipe); 57 void svr_session(int sock, int childpipe);
184 struct Channel ** channels; /* these pointers may be null */ 186 struct Channel ** channels; /* these pointers may be null */
185 unsigned int chansize; /* the number of Channel*s allocated for channels */ 187 unsigned int chansize; /* the number of Channel*s allocated for channels */
186 unsigned int chancount; /* the number of Channel*s in use */ 188 unsigned int chancount; /* the number of Channel*s in use */
187 const struct ChanType **chantypes; /* The valid channel types */ 189 const struct ChanType **chantypes; /* The valid channel types */
188 190
189 191 /* TCP priority level for the main "port 22" tcp socket */
192 enum dropbear_prio socket_prio;
193
190 /* TCP forwarding - where manage listeners */ 194 /* TCP forwarding - where manage listeners */
191 struct Listener ** listeners; 195 struct Listener ** listeners;
192 unsigned int listensize; 196 unsigned int listensize;
193 197
194 /* Whether to allow binding to privileged ports (<1024). This doesn't 198 /* Whether to allow binding to privileged ports (<1024). This doesn't