From owner-freebsd-pf@freebsd.org Thu Oct 6 13:32:30 2016 Return-Path: Delivered-To: freebsd-pf@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A420EBE93E5 for ; Thu, 6 Oct 2016 13:32:30 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from venus.codepro.be (venus.codepro.be [IPv6:2a01:4f8:162:1127::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.codepro.be", Issuer "Gandi Standard SSL CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 70293DCC for ; Thu, 6 Oct 2016 13:32:30 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from [192.168.228.1] (vega.codepro.be [IPv6:2a01:4f8:162:1127::3]) (Authenticated sender: kp) by venus.codepro.be (Postfix) with ESMTPSA id F014F15BD4; Thu, 6 Oct 2016 15:32:27 +0200 (CEST) From: "Kristof Provost" To: "Mark Martinec" Cc: freebsd-pf@freebsd.org Subject: Re: dscp set/get Date: Thu, 06 Oct 2016 15:32:27 +0200 Message-ID: In-Reply-To: References: <57F5D9D2.1060103@norma.perm.ru> <311888F1-3BD6-4C4E-818D-C4A9C00B55ED@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Mailer: MailMate (2.0BETAr6057) X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Oct 2016 13:32:30 -0000 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, Kristof