Mercurial > dropbear
comparison svr-tcpfwd.c @ 1859:1d86a58fb52d
Leave non-interactive at default QoS class
Lower class levels are less well defined, and non-interactive
SSH can carry various different types of applications.
This change also sets lowdelay class (AF21) earlier in an an outbound
dbclient session
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 27 Jan 2022 14:34:10 +0800 |
parents | a7cc3332d8ab |
children |
comparison
equal
deleted
inserted
replaced
1857:6022df862942 | 1859:1d86a58fb52d |
---|---|
58 static int newtcpdirect(struct Channel * channel); | 58 static int newtcpdirect(struct Channel * channel); |
59 | 59 |
60 #if DROPBEAR_SVR_REMOTETCPFWD | 60 #if DROPBEAR_SVR_REMOTETCPFWD |
61 static const struct ChanType svr_chan_tcpremote = { | 61 static const struct ChanType svr_chan_tcpremote = { |
62 "forwarded-tcpip", | 62 "forwarded-tcpip", |
63 tcp_prio_inithandler, | 63 NULL, |
64 NULL, | 64 NULL, |
65 NULL, | 65 NULL, |
66 NULL, | 66 NULL, |
67 NULL | 67 NULL |
68 }; | 68 }; |
287 if (origport > 65535 || destport > 65535) { | 287 if (origport > 65535 || destport > 65535) { |
288 TRACE(("leave newtcpdirect: port > 65535")) | 288 TRACE(("leave newtcpdirect: port > 65535")) |
289 goto out; | 289 goto out; |
290 } | 290 } |
291 | 291 |
292 channel->prio = DROPBEAR_CHANNEL_PRIO_UNKNOWABLE; | |
293 | |
294 snprintf(portstring, sizeof(portstring), "%u", destport); | 292 snprintf(portstring, sizeof(portstring), "%u", destport); |
295 channel->conn_pending = connect_remote(desthost, portstring, channel_connect_done, channel, NULL, NULL); | 293 channel->conn_pending = connect_remote(desthost, portstring, channel_connect_done, |
296 | 294 channel, NULL, NULL, DROPBEAR_PRIO_NORMAL); |
295 | |
297 err = SSH_OPEN_IN_PROGRESS; | 296 err = SSH_OPEN_IN_PROGRESS; |
298 | 297 |
299 out: | 298 out: |
300 m_free(desthost); | 299 m_free(desthost); |
301 m_free(orighost); | 300 m_free(orighost); |