comparison cli-tcpfwd.c @ 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 115f8a3c2d5a
children 4121ca987e6a
comparison
equal deleted inserted replaced
940:e9dfb6d15193 941:5daedffd0769
50 const char* remoteaddr, 50 const char* remoteaddr,
51 unsigned int remoteport); 51 unsigned int remoteport);
52 static const struct ChanType cli_chan_tcplocal = { 52 static const struct ChanType cli_chan_tcplocal = {
53 1, /* sepfds */ 53 1, /* sepfds */
54 "direct-tcpip", 54 "direct-tcpip",
55 NULL, 55 tcp_prio_inithandler,
56 NULL, 56 NULL,
57 NULL, 57 NULL,
58 NULL 58 NULL
59 }; 59 };
60 #endif 60 #endif
265 265
266 /* We don't set readfd, that will get set after the connection's 266 /* We don't set readfd, that will get set after the connection's
267 * progress succeeds */ 267 * progress succeeds */
268 channel->writefd = sock; 268 channel->writefd = sock;
269 channel->initconn = 1; 269 channel->initconn = 1;
270
271 channel->prio = DROPBEAR_CHANNEL_PRIO_UNKNOWABLE;
270 272
271 err = SSH_OPEN_IN_PROGRESS; 273 err = SSH_OPEN_IN_PROGRESS;
272 274
273 out: 275 out:
274 m_free(origaddr); 276 m_free(origaddr);