Date: Wed, 24 Feb 2016 13:06:21 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ipfw@FreeBSD.org Subject: [Bug 207459] ipfw rule using dscp cs4 results in be/cs0 Message-ID: <bug-207459-7515-bOCT3qdZMj@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-207459-7515@https.bugs.freebsd.org/bugzilla/> References: <bug-207459-7515@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207459 smithi@nimnet.asn.au changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |smithi@nimnet.asn.au --- Comment #2 from smithi@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 =3D *(p + 1) & (1 << (x - 32)); else match =3D *p & (1 << x); } --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-207459-7515-bOCT3qdZMj>