comparison cli-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
49 unsigned int listenport, 49 unsigned int listenport,
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 "direct-tcpip", 53 "direct-tcpip",
54 tcp_prio_inithandler, 54 NULL,
55 NULL, 55 NULL,
56 NULL, 56 NULL,
57 NULL, 57 NULL,
58 NULL 58 NULL
59 }; 59 };
270 dropbear_log(LOG_INFO, "Server sent unrequested forward from \"%s:%d\"", 270 dropbear_log(LOG_INFO, "Server sent unrequested forward from \"%s:%d\"",
271 origaddr, origport); 271 origaddr, origport);
272 goto out; 272 goto out;
273 } 273 }
274 274
275 channel->prio = DROPBEAR_CHANNEL_PRIO_UNKNOWABLE;
276
277 snprintf(portstring, sizeof(portstring), "%u", fwd->connectport); 275 snprintf(portstring, sizeof(portstring), "%u", fwd->connectport);
278 channel->conn_pending = connect_remote(fwd->connectaddr, portstring, channel_connect_done, channel, NULL, NULL); 276 channel->conn_pending = connect_remote(fwd->connectaddr, portstring, channel_connect_done,
277 channel, NULL, NULL, DROPBEAR_PRIO_NORMAL);
279 278
280 err = SSH_OPEN_IN_PROGRESS; 279 err = SSH_OPEN_IN_PROGRESS;
281 280
282 out: 281 out:
283 m_free(origaddr); 282 m_free(origaddr);