From da57dd13c5352efd63c8692bbc12d19c9f882a2b Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Wed, 16 Jul 2014 22:53:32 +0800 Subject: 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. --- cli-tcpfwd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cli-tcpfwd.c') 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; -- cgit v1.2.3