Mercurial > dropbear
diff netio.h @ 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 | f787f60f8e45 |
children |
line wrap: on
line diff
--- a/netio.h Tue Jan 25 17:32:20 2022 +0800 +++ b/netio.h Thu Jan 27 14:34:10 2022 +0800 @@ -6,9 +6,8 @@ #include "queue.h" enum dropbear_prio { - DROPBEAR_PRIO_DEFAULT = 10, - DROPBEAR_PRIO_LOWDELAY = 11, - DROPBEAR_PRIO_BULK = 12, + DROPBEAR_PRIO_NORMAL = 0, /* the rest - tcp-fwd, scp, rsync, git, etc */ + DROPBEAR_PRIO_LOWDELAY, /* pty shell, x11 */ }; void set_sock_nodelay(int sock); @@ -30,7 +29,8 @@ /* Always returns a progress connection, if it fails it will call the callback at a later point */ struct dropbear_progress_connection * connect_remote (const char* remotehost, const char* remoteport, - connect_callback cb, void *cb_data, const char* bind_address, const char* bind_port); + connect_callback cb, void *cb_data, const char* bind_address, const char* bind_port, + enum dropbear_prio prio); /* Sets up for select() */ void set_connect_fds(fd_set *writefd);