Introduce convenience macros to retrieve the DSCP, ECN or traffic class
bits from an IPv6 header.
Use them where appropriate.
MFC after: 2 weeks
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential D29056
net: Introduce IPV6_DSCP(), IPV6_ECN() and IPV6_TRAFFIC_CLASS() macros kp on Mar 4 2021, 12:33 PM. Authored by Tags None Referenced Files
Details Introduce convenience macros to retrieve the DSCP, ECN or traffic class Use them where appropriate. MFC after: 2 weeks
Diff Detail
Event TimelineComment Actions there are siimilar constructs in the tcp stack, when checking for ECN (extracting the "common, legacy" TOS byte first: tcp_input.c:692: iptos = (ntohl(ip6->ip6_flow) >> 20) & 0xff; perhaps replace those with
Comment Actions We may as well, while we're at it.
|