From owner-freebsd-pf@freebsd.org Thu Oct 6 15:48:28 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 883B5BD3AAB for ; Thu, 6 Oct 2016 15:48:28 +0000 (UTC) (envelope-from franco@lastsummer.de) Received: from host64.shmhost.net (unknown [IPv6:2a01:4f8:a0:51d6::108:1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4F74E1F9; Thu, 6 Oct 2016 15:48:28 +0000 (UTC) (envelope-from franco@lastsummer.de) Received: from francos-mbp.homeoffice.local (ipservice-092-208-160-166.092.208.pools.vodafone-ip.de [92.208.160.166]) by host64.shmhost.net (Postfix) with ESMTPSA id E195D842AD; Thu, 6 Oct 2016 17:48:25 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: dscp set/get From: Franco Fichtner In-Reply-To: Date: Thu, 6 Oct 2016 17:48:25 +0200 Cc: Mark Martinec , freebsd-pf@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <8AF1911D-86B2-40F3-99F2-C10E29AF404C@lastsummer.de> References: <57F5D9D2.1060103@norma.perm.ru> <311888F1-3BD6-4C4E-818D-C4A9C00B55ED@FreeBSD.org> To: Kristof Provost X-Mailer: Apple Mail (2.3124) X-Virus-Scanned: clamav-milter 0.99.2 at host64.shmhost.net X-Virus-Status: Clean 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 15:48:28 -0000 > On 06 Oct 2016, at 3:32 PM, Kristof Provost wrote: >=20 > OpenBSD seem to just always preserve the ECN bits (so there=E2=80=99s = no dscp keyword). > Perhaps we should do the same. The following will import the OpenBSD code regarding the subject. I retained the old manual style that is in FreeBSD to make the additions fit in better. Completely backwards-compatible, except for the change in behaviour regarding to ignore ECN on set/match. The ECN change is from 2012, so it's safe to assume it works. ;) https://reviews.freebsd.org/D8165 Cheers, Franco=