From patchwork Sat Jan 8 23:42:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin 'ldir' Darbyshire-Bryant X-Patchwork-Id: 1577352 X-Patchwork-Delegate: rsalvaterra@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=GHoeLuaI; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4JWcCd03X6z9ssD for ; Sun, 9 Jan 2022 10:45:32 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type:List-Help: Reply-To:List-Archive:List-Unsubscribe:List-Subscribe:From:List-Post:List-Id: Message-ID:MIME-Version:Date:Subject:To:Cc:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=JQ1KMdPpocBiboP8BS7MOctI9eYYGfbkeLCHdFwy3NA=; b=GHoeLuaIA7pUOpt2t3xtqPiIpd fcqnh4ibQOzpkjM74Njk38he+JpxU9EABlisQb9gF+KCf4qOQpn0YoFoLCd6q/nwolhfumfqhmi9R eN712+lkzzdDg2mxql+xVwm43Nyey1nTSh6E1ZpdkpUCC3QAIS6bTUJnvow16+UYcPkk3hu5K7lqX MN46Poq1uox10J3EvzGWnlXrW1seQfgECk2DrK+iZmNVVSrKxG1W5RQquWgt/lSXGofgreUvI4GIR D2RhLuGhZi9BwL7zQl+9Ip7jvSdIz91EuN9qFn7tdwtHMD087RuQXYzbuSc4RS/KW9yDRd1AN7GaG ustcsDkQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n6LMk-0077OH-M0; Sat, 08 Jan 2022 23:43:18 +0000 To: openwrt-devel@lists.openwrt.org Subject: [PATCH v2] options.c: add DSCP code LE Least Effort Date: Sat, 8 Jan 2022 23:42:27 +0000 MIME-Version: 1.0 Message-ID: List-Id: OpenWrt Development List List-Post: X-Patchwork-Original-From: Kevin Darbyshire-Bryant via openwrt-devel From: Kevin 'ldir' Darbyshire-Bryant Precedence: list X-Mailman-Version: 2.1.34 X-BeenThere: openwrt-devel@lists.openwrt.org List-Subscribe: , List-Unsubscribe: , List-Archive: Reply-To: Kevin Darbyshire-Bryant List-Help: Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org The sender domain has a DMARC Reject/Quarantine policy which disallows sending mailing list messages using the original "From" header. To mitigate this problem, the original message has been wrapped automatically by the mailing list software. RFC-8622 implements a low priority DSCP marking called 'Least Effort' or 'LE' Instead of prioritising traffic in varying degrees, this defines a scum class of packet that really is the lowest of the low and you may consider forwarding if you really have nothing better to do. This patch adds LE class support to firewall3. Signed-off-by: Kevin Darbyshire-Bryant Reviewed-by: Rui Salvaterra --- options.c | 1 + 1 file changed, 1 insertion(+) diff --git a/options.c b/options.c index 6131786..2f419a3 100644 --- a/options.c +++ b/options.c @@ -146,6 +146,7 @@ static const struct { const char *name; uint8_t dscp; } dscp_classes[] = { { "CS6", 0x30 }, { "CS7", 0x38 }, { "BE", 0x00 }, + { "LE", 0x01 }, { "AF11", 0x0a }, { "AF12", 0x0c }, { "AF13", 0x0e },