[Bug 207459] ipfw rule using dscp cs4 results in be/cs0
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Feb 24 13:06:21 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207459
smithi at nimnet.asn.au changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |smithi at nimnet.asn.au
--- Comment #2 from smithi at nimnet.asn.au ---
Rats, ae@ beat me to it .. i << 32 is of course 0.
But not just sbin/ipfw .. also in /sys/netpfil/ipfw/ip_fw2.c:
case O_DSCP:
{
uint32_t *p;
uint16_t x;
[..]
/* DSCP bitmask is stored as low_u32 high_u32 */
if (x > 32)
match = *(p + 1) & (1 << (x - 32));
else
match = *p & (1 << x);
}
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the freebsd-ipfw
mailing list