comparison channel.h @ 1857:6022df862942

Use DSCP for IP QoS traffic classes The previous TOS values are deprecated and not used by modern traffic classifiers. This sets AF21 for "interactive" traffic (with a tty). Non-tty traffic sets AF11 - that indicates high throughput but is not lowest priority (which would be CS1 or LE). This differs from the CS1 used by OpenSSH, it lets interactive git over SSH have higher priority than background least effort traffic. Dropbear's settings here should be suitable with the diffservs used by CAKE qdisc.
author Matt Johnston <matt@ucc.asn.au>
date Tue, 25 Jan 2022 17:32:20 +0800
parents 90ac15aeac43
children 1d86a58fb52d
comparison
equal deleted inserted replaced
1856:8f28519e34b0 1857:6022df862942
42 struct ChanType; 42 struct ChanType;
43 43
44 enum dropbear_channel_prio { 44 enum dropbear_channel_prio {
45 DROPBEAR_CHANNEL_PRIO_INTERACTIVE, /* pty shell, x11 */ 45 DROPBEAR_CHANNEL_PRIO_INTERACTIVE, /* pty shell, x11 */
46 DROPBEAR_CHANNEL_PRIO_UNKNOWABLE, /* tcp - can't know what's being forwarded */ 46 DROPBEAR_CHANNEL_PRIO_UNKNOWABLE, /* tcp - can't know what's being forwarded */
47 DROPBEAR_CHANNEL_PRIO_BULK, /* the rest - probably scp or something */ 47 DROPBEAR_CHANNEL_PRIO_BULK, /* the rest - probably scp, rsync, git, or something */
48 DROPBEAR_CHANNEL_PRIO_EARLY, /* channel is still being set up */ 48 DROPBEAR_CHANNEL_PRIO_EARLY, /* channel is still being set up */
49 }; 49 };
50 50
51 struct Channel { 51 struct Channel {
52 52