TOS byte on port forwarding-only connections

Catalin Patulea cat at vv.carleton.ca
Mon Jul 14 02:56:17 WST 2014


On Tue, Jul 8, 2014 at 9:44 AM, Matt Johnston <matt at ucc.asn.au> wrote:
> I'm not really sure how to resolve it though. Maybe as a
> tradeoff the refcounting could just switch between LOWDELAY
> and no-tos-flags if there are TCP forwards going on, then
> BULK if there aren't TCP forwards?
Ok, so if I'm understanding correctly, the invariant would be something like:

if (connecting || ptys) tos = LOWDELAY;
else if (tcp_forwards) tos = 0;
else tos = BULK;

This might be implemented cleverly so that it's only reapplied on 0/1
transitions of ptys and tcp_forwards, but these would be the
high-level semantics?


More information about the Dropbear mailing list