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 | da57dd13c5352efd63c8692bbc12d19c9f882a2b (patch) | |
tree | ec18c7626bb47b3c4540f78d65d2a49b8a2d2fbf /cli-tcpfwd.c | |
parent | f1826ea389bfddb6a0d52314d01e3d8b8f46eec8 (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 'cli-tcpfwd.c')
-rw-r--r-- | cli-tcpfwd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cli-tcpfwd.c b/cli-tcpfwd.c index c83c7cb..fa61d13 100644 --- a/cli-tcpfwd.c +++ b/cli-tcpfwd.c @@ -52,7 +52,7 @@ static int cli_localtcp(const char* listenaddr, static const struct ChanType cli_chan_tcplocal = { 1, /* sepfds */ "direct-tcpip", - NULL, + tcp_prio_inithandler, NULL, NULL, NULL @@ -267,6 +267,8 @@ static int newtcpforwarded(struct Channel * channel) { * progress succeeds */ channel->writefd = sock; channel->initconn = 1; + + channel->prio = DROPBEAR_CHANNEL_PRIO_UNKNOWABLE; err = SSH_OPEN_IN_PROGRESS; |