Page MenuHomeFreeBSD

Add -z "TOS" option to ping6, to test DSCP/ECN values
ClosedPublic

Authored by rscheff on Wed, Sep 9, 10:25 PM.

Details

Summary

ping has the option to add the (deprecated) TOS byte
using the -z option. Adding the same option, with the
same (deprecated) Traffic Class Byte (nowadays actually
DSCP and ECN fields) to ping6 to validate proper QoS
processing in network switches.

Test Plan

Run "tcpdump -vvv -nn -i lo0 -xx" and verify, that
the ICMP6 request has the provided data for the traffic
class in the 5th and 6th octet, right after the IP
version "high nibble" (6) in the 5th octet.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

rscheff requested review of this revision.Wed, Sep 9, 10:25 PM
rscheff created this revision.
tuexen accepted this revision.Wed, Sep 9, 11:16 PM
This revision is now accepted and ready to land.Wed, Sep 9, 11:16 PM
This revision was automatically updated to reflect the committed changes.