diff options
author | Matt Johnston <matt@ucc.asn.au> | 2022-01-27 14:34:10 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2022-01-27 14:34:10 +0800 |
commit | eae3c90029bd1bac2c6b0d412ca2c852a00f9a75 (patch) | |
tree | aa34e079115a8bc3d7de5a6ee6ad4f49f990bc41 /netio.h | |
parent | b6a1fc201e6702dd2420bd8658cd223774769f9c (diff) | |
download | dropbear-eae3c90029bd1bac2c6b0d412ca2c852a00f9a75.tar.gz |
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
Diffstat (limited to 'netio.h')
-rw-r--r-- | netio.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 @@ typedef void(*connect_callback)(int result, int sock, void* data, const char* er /* 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); |