summaryrefslogtreecommitdiffhomepage
path: root/session.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2014-07-16 22:53:32 +0800
committerMatt Johnston <matt@ucc.asn.au>2014-07-16 22:53:32 +0800
commitda57dd13c5352efd63c8692bbc12d19c9f882a2b (patch)
treeec18c7626bb47b3c4540f78d65d2a49b8a2d2fbf /session.h
parentf1826ea389bfddb6a0d52314d01e3d8b8f46eec8 (diff)
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.
Diffstat (limited to 'session.h')
-rw-r--r--session.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/session.h b/session.h
index 548dabd..3a0e87a 100644
--- a/session.h
+++ b/session.h
@@ -48,6 +48,8 @@ void session_cleanup();
void send_session_identification();
void send_msg_ignore();
+void update_channel_prio();
+
const char* get_user_shell();
void fill_passwd(const char* username);
@@ -186,7 +188,9 @@ struct sshsession {
unsigned int chancount; /* the number of Channel*s in use */
const struct ChanType **chantypes; /* The valid channel types */
-
+ /* TCP priority level for the main "port 22" tcp socket */
+ enum dropbear_prio socket_prio;
+
/* TCP forwarding - where manage listeners */
struct Listener ** listeners;
unsigned int listensize;