diff options
author | Matt Johnston <matt@ucc.asn.au> | 2014-07-16 22:53:32 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2014-07-16 22:53:32 +0800 |
commit | 074e3095451ff08dfda217deb1e51fede0c6f52e (patch) | |
tree | d13dc9ead17ee20849c5f43662ccbb4467319f04 /svr-x11fwd.c | |
parent | 235fb34a9c7933fa50d5cff8e7564774036f2d74 (diff) | |
download | dropbear-074e3095451ff08dfda217deb1e51fede0c6f52e.tar.gz |
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 'svr-x11fwd.c')
-rw-r--r-- | svr-x11fwd.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/svr-x11fwd.c b/svr-x11fwd.c index f6368d7..ceca26a 100644 --- a/svr-x11fwd.c +++ b/svr-x11fwd.c @@ -182,10 +182,15 @@ void x11cleanup(struct ChanSess *chansess) { } } +static int x11_inithandler(struct Channel *channel) { + channel->prio = DROPBEAR_CHANNEL_PRIO_INTERACTIVE; + return 0; +} + static const struct ChanType chan_x11 = { 0, /* sepfds */ "x11", - NULL, /* inithandler */ + x11_inithandler, /* inithandler */ NULL, /* checkclose */ NULL, /* reqhandler */ NULL /* closehandler */ |