diff mbox series

fw4: add a range of icmpv6 types

Message ID c93929b4-3ad4-f479-06ff-88e308b55002@gmail.com
State Superseded
Headers show
Series fw4: add a range of icmpv6 types | expand

Commit Message

Paul Donald Feb. 2, 2023, 4:05 p.m. UTC
Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com>
---
  root/usr/share/ucode/fw4.uc | 64 ++++++++++++++++++++++++++++++++++++-
  1 file changed, 63 insertions(+), 1 deletion(-)


  const dscp_classes = {

Comments

Jo-Philipp Wich Feb. 3, 2023, 11:10 a.m. UTC | #1
Hi,

the patch was white-space mangled and the Signed-off-by didn't match the
author. It also introduced syntax errors in fw4.uc so it seems it hasn't been
runtime tested at all.

Superseded by https://git.openwrt.org/e6e82a5 and https://git.openwrt.org/30ee17a.
diff mbox series

Patch

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 */
  };