pub fn dscp_to_up(dscp: u8) -> u8
Expand description
Given the 6-bit DSCP from IPv4 or IPv6 header, convert it to User Priority This follows RFC 8325 - https://tools.ietf.org/html/rfc8325#section-4.3 For list of DSCP, see https://www.iana.org/assignments/dscp-registry/dscp-registry.xhtml