1 | initial version |
Untested, but a DSCP range of 8-23 means values of the first octet of the IP header are between 0x20 and 0x5C inclusive, so with the appropriate mask gives
(ip[1] & 0xFC >= 0x20) and (ip[1] & 0xFC <= 0x5C)
2 | No.2 Revision |
Untested, but a DSCP range of 8-23 means values of the first firstsecond (or index [1]) octet of the IP header are between 0x20 and 0x5C inclusive, so with the appropriate mask gives
(ip[1] & 0xFC >= 0x20) and (ip[1] & 0xFC <= 0x5C)