luci-app-firewall: add ipv6 exclusive ICMP types 5320/head
authorPaul Dee <systemcrash@users.noreply.github.com>
Tue, 31 Aug 2021 21:10:44 +0000 (23:10 +0200)
committerPaul Dee <systemcrash@users.noreply.github.com>
Tue, 31 Aug 2021 21:15:16 +0000 (23:15 +0200)
to firewall 'Match ICMP type' field.

See issue #5213

Signed-off-by: Paul Dee <systemcrash@users.noreply.github.com>
applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js

index 435728a490f2df83fe271222c34e5844212a34e2..67b036780b8864a8ad939fd047f896d3c1e581e9 100644 (file)
@@ -298,6 +298,8 @@ return view.extend({
                o.value('', 'any');
                o.value('address-mask-reply');
                o.value('address-mask-request');
+               o.value('address-unreachable'); /* ipv6 */
+               o.value('bad-header');  /* ipv6 */
                o.value('communication-prohibited');
                o.value('destination-unreachable');
                o.value('echo-reply');
@@ -315,6 +317,7 @@ return view.extend({
                o.value('network-redirect');
                o.value('network-unknown');
                o.value('network-unreachable');
+               o.value('no-route');  /* ipv6 */
                o.value('packet-too-big');
                o.value('parameter-problem');
                o.value('port-unreachable');
@@ -335,6 +338,8 @@ return view.extend({
                o.value('TOS-network-unreachable');
                o.value('ttl-zero-during-reassembly');
                o.value('ttl-zero-during-transit');
+               o.value('unknown-header-type');  /* ipv6 */
+               o.value('unknown-option');  /* ipv6 */
                o.depends({ proto: 'icmp', '!contains': true });
                o.depends({ proto: 'icmpv6', '!contains': true });