From patchwork Thu Feb 2 16:05:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Donald X-Patchwork-Id: 1736509 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: legolas.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=oT3PMRnz; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=XhmtPhqO; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4P73cL6jPNz23hh for ; Fri, 3 Feb 2023 03:08:34 +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: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Subject:From:To:MIME-Version:Date:Message-ID: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=74EIFegZqszbk8TP9jJsxEwq038P6e4l7CVgEKcmT8A=; b=oT3PMRnzc4jGC3 8oBLyixN8/iBTbeL3KmMM349W3QXpv5c06ZtK4wWXqV2Ajn6brt5Zvo7jlpRhPm4mqh1sGoxUoxkY so+cR1wByYPZUkkiotVrM2Bmw7msottvtKg/6ulHhDaPSisKPzCZB1CGgn46kJPUwHQrFPNW4M3qT +kC1+j2i3Jq0efkUKAkLsGqiq6J/5vuB0DFgn7XPRfcBbpq7+po23ochiioIFI85Se71LOoOWvX8N BRiDGIz15xTwX+VOc95VkNLw6kdcFeowIEOjSrvU5w3UEbdaNyt+0ohU0W3PyAceozreP2Xt50EbZ c3FZyytjsl9YsSIHmJUg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pNc5p-00GZWa-Ac; Thu, 02 Feb 2023 16:05:45 +0000 Received: from mail-qt1-x82a.google.com ([2607:f8b0:4864:20::82a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pNc5m-00GZW8-GX for openwrt-devel@lists.openwrt.org; Thu, 02 Feb 2023 16:05:43 +0000 Received: by mail-qt1-x82a.google.com with SMTP id v17so2348531qto.3 for ; Thu, 02 Feb 2023 08:05:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:subject:from:content-language:to :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=paWqwYAWdAYVzAL6VDxmO/wzGq6qmVHXg80OkB9QFNo=; b=XhmtPhqODt2Eb71HKvtJXAVw0sG0zberlD/yVAW2ZmZw7sOLV/ZEc+H5n8FnJb/mAk 7A0B070CgziNDMbA05ioaHWh91SFGfzEk5bC1bgU/rvTfQu6bTgda6ntZXg8IQ+xhjqN Bi9uQqmP/T7nwo0JzP71uLWLErMphzRZqAY3XWt6aXrnMYICdiqxnaLZJxLgVInacQVI wWOv1weEbHS++JKSPHvaquFXflNY85PfwE03KZimOGfTU5YcNsA9X7u4P8/ea15rr90p MOcm4gY+WNSPDC/cAIOGyl1l1lLOwGlL8oRn5XB770M99Ju7GdrxkoxJgOwjYoqIhN10 vPQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:subject:from:content-language:to :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=paWqwYAWdAYVzAL6VDxmO/wzGq6qmVHXg80OkB9QFNo=; b=HaVAxpi1NnmOwX88PeCWgxzTUG1kngvv43hTRI8Tk/uGxe23jcBnzBeIlYL4kw6m66 qzAm3ayaluDM4sYRzM9soLjypjk4arRYPuDNqOmApyNkjMFi0orBjGTJaAnZxrTzX/zF /5ORlIhJmfrZ1D7fTtS62FDHchbMQ4DsSxjuUOrpVg5A7RcgBagrA2H253jcyfNwQ1Iq r96zec0FCQu5r4YxlHlwmNViNbff3/O8Bnep0NsLy53+y6dQ4VkGF8AJcYFM6NU4yruy zITjA7XjMziS2HZ2xL75Rzi9XOXKgKCr7Z0Hs+kkO5r4MAhLdLZNgaImgDkkf7pQdqWa /zfA== X-Gm-Message-State: AO0yUKUXjkq2GKpDHEge+3ZyDU7vZooqHqajgFUP8LOh34aZlMb66cXX UUa7BuU5GBKY6g0xrxUtgVtcxoqHMcM= X-Google-Smtp-Source: AK7set8HfLa1P54qGT95XgQiVK4bJUH8bcnf9DhAc8j/L9BYZemPTDKoHg9OJ6Nqh8/+un88JEUKUg== X-Received: by 2002:ac8:58ce:0:b0:3b9:8885:296a with SMTP id u14-20020ac858ce000000b003b98885296amr12875442qta.11.1675353938376; Thu, 02 Feb 2023 08:05:38 -0800 (PST) Received: from ?IPV6:2001:9b0:21a:2a00:4490:3e8e:2836:13b6? ([2001:9b0:21a:2a00:4490:3e8e:2836:13b6]) by smtp.googlemail.com with ESMTPSA id n2-20020ac85a02000000b003b86d3ca969sm7464807qta.51.2023.02.02.08.05.37 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Feb 2023 08:05:37 -0800 (PST) Message-ID: Date: Thu, 2 Feb 2023 17:05:36 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 To: openwrt-devel@lists.openwrt.org Content-Language: en-US From: Paul D Subject: [PATCH] fw4: add a range of icmpv6 types X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230202_080542_600284_90177F5E X-CRM114-Status: UNSURE ( 9.33 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Signed-off-by: Paul Dee --- root/usr/share/ucode/fw4.uc | 64 ++++++++++++++++++++++++++++++++++++- 1 file changed, 63 insertions(+), 1 deletion(-) diff --git a/root/usr/share/ucode/fw4.uc b/root/usr/share/ucode/fw4.uc index 5dce90d..96f2780 100644 --- a/root/usr/share/ucode/fw4.uc +++ b/root/usr/share/ucode/fw4.uc @@ -67,6 +67,7 @@ const ipv4_ic [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:82a listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [newtwen[at]gmail.com] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Signed-off-by: Paul Dee --- root/usr/share/ucode/fw4.uc | 64 ++++++++++++++++++++++++++++++++++++- 1 file changed, 63 insertions(+), 1 deletion(-) const dscp_classes = { diff --git a/root/usr/share/ucode/fw4.uc b/root/usr/share/ucode/fw4.uc index 5dce90d..96f2780 100644 --- a/root/usr/share/ucode/fw4.uc +++ b/root/usr/share/ucode/fw4.uc @@ -67,6 +67,7 @@ const ipv4_icmptypes = { }; const ipv6_icmptypes = { + /* "name": [ type-code, code-min, code-max ] */ "destination-unreachable": [ 1, 0, 0xFF ], "no-route": [ 1, 0, 0 ], "communication-prohibited": [ 1, 1, 1 ], @@ -91,6 +92,11 @@ const ipv6_icmptypes = { "echo-reply": [ 129, 0, 0xFF ], "pong": [ 129, 0, 0xFF ], /* Alias */ + /* only code zero (0) */ + "multicast-listener-query": [ 130, 0, 0xFF ], + "multicast-listener-report": [ 131, 0, 0xFF ], + "multicast-listener-done": [ 132, 0, 0xFF ], + "router-solicitation": [ 133, 0, 0xFF ], "router-advertisement": [ 134, 0, 0xFF ], @@ -101,7 +107,63 @@ const ipv6_icmptypes = { "neighbour-advertisement": [ 136, 0, 0xFF ], "neighbor-advertisement": [ 136, 0, 0xFF ], /* Alias */ - "redirect": [ 137, 0, 0xFF ] + "redirect": [ 137, 0, 0xFF ], + + /* codes 0, 1, 255 */ + "router-renumbering": [ 138, 0, 0xFF ], + + /* codes 0, 1, 2 */ + "node-info-query": [ 139, 0, 0xFF ], + /* codes 0, 1, 2 */ + "node-info-response": [ 140, 0, 0xFF ], + + "inverse-neighbour-discovery-solicitation-message": [ 141, 0, 0xFF ], + "inverse-neighbor-discovery-solicitation-message": [ 141, 0, 0xFF ], /* Alias */ + + "inverse-neighbour-discovery-advertisement-message": [ 142, 0, 0xFF ], + "inverse-neighbor-discovery-advertisement-message": [ 142, 0, 0xFF ], /* Alias */ + + "v2-multicast-listener-report": [ 143, 0, 0xFF ], + + "home-agent-address-discovery-request-message": [ 144, 0, 0xFF ], + "home-agent-address-discovery-reply-message": [ 145, 0, 0xFF ], + + "mobile-prefix-solicitation": [ 146, 0, 0xFF ], + "mobile-prefix-advertisement": [ 147, 0, 0xFF ], + + /* SEND */ + "certification-path-solicitation-message": [ 148, 0, 0xFF ], + "certification-path-advertisement-message": [ 149, 0, 0xFF ], + + "seamoby-protocol-message": [ 150, 0, 0xFF ], + + /* IPv6 multicast: FF02:0:0:0:0:0:0:6A, no code fields */ + "multicast-router-advertisement": [ 151, 0, 0xFF ], + "multicast-router-solicitation": [ 152, 0, 0xFF ], + "multicast-router-termination": [ 153, 0, 0xFF ], + + /* codes 0-5, 6-255 */ + "fmipv6-message": [ 154, 0, 0xFF ], + + "rpl-control-message": [ 155, 0, 0xFF ], + + "ilnpv6-locator-update-message": [ 156, 0, 0xFF ], + + /* codes 0-4, 5-15 */ + "duplicate-address-request": [ 157, 0, 0xFF ], + /* codes 0-4, 5-15 */ + "duplicate-address-confirmation" [ 158, 0, 0xFF ], + + /* Multicast Protocol for Low-Power */ + "mpl-control-message": [ 159, 0, 0xFF ], + + /* codes 0, 1-255 */ + "extended-echo-request" [ 160, 0, 0xFF ], + "extended-ping" [ 160, 0, 0xFF ], /* Alias */ + + /* codes 0-4, 5-255 */ + "extended-echo-reply" [ 161, 0, 0xFF ], + "extended-pong" [ 161, 0, 0xFF ] /* Alias */ };