On 19 August 2011 10:25, Damien Miller <d...@mindrot.org> wrote: > On Thu, 18 Aug 2011, Christiano F. Haesbaert wrote: > >> Hi, >> >> I'm tinkering with ToS->CoS (802.1p) translation in vlan(4) so I >> needed something to test, tcpbench seems to deserve a tos option. >> >> It uses the same map_option() from pfctl with some minor tweeks. >> So it accepts decimal, hexadecimal, critical, lowdelay, af11... >> >> Option chosen was -t, couldn't find anything related in other programs. > > Thanks, I like this. Could you add IPV6_TCLASS for IF_INET6 too? >
Sure, I'll just have to study a bit, I know nothing of IPv6. Sthen pointed out that ping uses -T for tos and traceroute just recently added -t. Since ping uses -t for ttl, I think we should change em all to -T, traderoute only had the -t option very recently so it wouldn't be much problem. Also, ping for instance won't accept hex as an option. I'll send a diff tonight with the options on -T for tcpbench/ping/traderoute.