On Wed, Sep 19, 2018 at 06:35:13PM +0800, Nan Xiao wrote:
> Hi tech@,
>
> For `-T' option explanation in netcat manual:
>
> -T keyword
> Change the IPv4 TOS value or the TLS options.
>
> But in fact, the netcat code not only processes IPv4 but also IPv6:
>
> if (Tflag != -1) {
> if (af == AF_INET && setsockopt(s, IPPROTO_IP,
> IP_TOS, &Tflag, sizeof(Tflag)) == -1)
> err(1, "set IP ToS");
>
> else if (af == AF_INET6 && setsockopt(s, IPPROTO_IPV6,
> IPV6_TCLASS, &Tflag, sizeof(Tflag)) == -1)
> err(1, "set IPv6 traffic class");
> }
>
> So I think maybe the netcat manual should be enriched at least for `-T'
> option, thanks!
>
hi.
i think if you submit a diff, there will be a better chance of getting
an ok (or otherwise).
i'm unsure about -T myself. i know that we synced the -T options for
ping/nc/traceroute to keep them in sync with pf, but none of those other
docs claim support for ip6 classes - actually quite the opposite.
so i'm unsure if they work (have you tested?) or whether we want to
document them.
jmc