From 7e50256f70e305bd635ed86adc54ed8cf10d0d70 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ond=C5=99ej=20Caletka?= Date: Wed, 21 Jun 2023 16:48:05 +0200 Subject: [PATCH] luci-mod-network: add PREF64 support MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Add support for ra_pref64 option for IPv6 Router Advertisements options. This option of IPv6 Router Advertisements allows devices connected to a IPv6-only network to discover IPv6 prefix of the NAT64 gateway. Devices can use this information for instance to setup client translator (CLAT) from IPv4 to IPv6 in 464XLAT (RFC 6877) scenario or to handle IPv4 address literal on application level. Signed-off-by: Ondřej Caletka [ remove extra new line and fix commit description ] Signed-off-by: Christian Marangi --- .../luci-static/resources/view/network/interfaces.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js index ebd9c05c56..70370846df 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js @@ -832,6 +832,13 @@ return view.extend({ } }; + so = ss.taboption('ipv6-ra', form.Value, 'ra_pref64', _('NAT64 prefix'), _('Announce NAT64 prefix in RA messages.')); + so.optional = true; + so.datatype = 'cidr6'; + so.placeholder = '64:ff9b::/96'; + so.depends('ra', 'server'); + so.depends({ ra: 'hybrid', master: '0' }); + so = ss.taboption('ipv6-ra', form.Value, 'ra_maxinterval', _('Max RA interval'), _('Maximum time allowed between sending unsolicited RA. Default is 600 seconds.')); so.optional = true; so.datatype = 'uinteger'; -- 2.30.2