From: Arayuki Mago Date: Thu, 12 Dec 2024 19:14:45 +0000 (+0900) Subject: luci-proto-ipv6: add missing extendprefix option for DHCPv6 client X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d992d6f105618c6752019df36acb2645487d7d14;p=project%2Fluci.git luci-proto-ipv6: add missing extendprefix option for DHCPv6 client Allow the DHCPv6 client to accept /64 prefix via SLAAC and extend it on downstream interface (RFC 7278) useful for ISPs that only distribute /64 IPv6 prefixes through SLAAC. Signed-off-by: Arayuki Mago --- diff --git a/modules/luci-base/po/templates/base.pot b/modules/luci-base/po/templates/base.pot index 882ab34a96..ffd56fa122 100644 --- a/modules/luci-base/po/templates/base.pot +++ b/modules/luci-base/po/templates/base.pot @@ -2703,7 +2703,11 @@ msgid "" "packets." msgstr "" -#: protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/dhcpv6.js:33 +#: protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/dhcpv6.js:34 +msgid "Extend prefix" +msgstr "" + +#: protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/dhcpv6.js:36 msgid "Do not send a Release when restarting" msgstr "" @@ -3187,6 +3191,10 @@ msgid "Enable this network" msgstr "" #: protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/dhcpv6.js:34 +msgid "Extend 3GPP WAN interface /64 prefix via PD to LAN (RFC 7278)" +msgstr "" + +#: protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/dhcpv6.js:37 msgid "Enable to minimise the chance of prefix change after a restart" msgstr "" diff --git a/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/dhcpv6.js b/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/dhcpv6.js index 2dac7b78f4..3984ce1334 100644 --- a/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/dhcpv6.js +++ b/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/dhcpv6.js @@ -30,6 +30,9 @@ return network.registerProtocol('dhcpv6', { o.value('60'); o.value('64'); o.default = 'auto'; + + o = s.taboption('general', form.Flag, 'extendprefix', _('Extend prefix'), _('Extend 3GPP WAN interface /64 prefix via PD to LAN (RFC 7278)')); + o = s.taboption('general', form.Flag, 'norelease', _('Do not send a Release when restarting'), _('Enable to minimise the chance of prefix change after a restart')); o.default = '1';