Page MenuHomeFreeBSD

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

Authored by rscheff on Sep 9 2020, 10:25 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 1, 3:41 PM
Unknown Object (File)
Tue, Nov 25, 7:43 PM
Unknown Object (File)
Nov 17 2025, 3:18 AM
Unknown Object (File)
Nov 11 2025, 4:34 AM
Unknown Object (File)
Nov 3 2025, 12:47 PM
Unknown Object (File)
Nov 3 2025, 12:46 PM
Unknown Object (File)
Nov 3 2025, 12:46 PM
Unknown Object (File)
Nov 3 2025, 12:46 PM
Subscribers

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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 33476
Build 30752: arc lint + arc unit