Date: Thu, 06 Oct 2016 15:32:27 +0200 From: "Kristof Provost" <kp@FreeBSD.org> To: "Mark Martinec" <Mark.Martinec+freebsd@ijs.si> Cc: freebsd-pf@freebsd.org Subject: Re: dscp set/get Message-ID: <E227CD94-66E0-4DFE-91F4-67F2DDEDE9BD@FreeBSD.org> In-Reply-To: <bbfc73f2096ac204a752a800c2863e97@mailbox.ijs.si> References: <57F5D9D2.1060103@norma.perm.ru> <311888F1-3BD6-4C4E-818D-C4A9C00B55ED@FreeBSD.org> <C1F20DD6-5B32-4856-A2F7-7DAFB38E4D3A@lastsummer.de> <C539471F-8C0C-4BCD-815C-D449EF1427DB@FreeBSD.org> <bbfc73f2096ac204a752a800c2863e97@mailbox.ijs.si>
index | next in thread | previous in thread | raw e-mail
On 6 Oct 2016, at 15:01, Mark Martinec wrote: > Just adding recognition to a parser for a couple of DSCP constants > to be mapped to TOS is not the solution. Keep in mind that DSCP > is a 6-bit field, and TOS is an 8-bit field. The remaining two bits > are used for ECN (Explicit Congestion Notification). > > Setting TOS field with the intention of changing DSCP > clobbers ECN bits. Pf needs a proper support for DSCP, > currently it is unusable for this purpose in FreeBSD > (one can use the PF from OpenBSD). > Hmm, that’s a good point. OpenBSD seem to just always preserve the ECN bits (so there’s no dscp keyword). Perhaps we should do the same. Regards, Kristofhome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E227CD94-66E0-4DFE-91F4-67F2DDEDE9BD>
