Ask Your Question

Revision history [back]

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)

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)