luci-mod-network: add PREF64 support
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 <ondrej@caletka.cz> [ remove extra new line and fix commit description ] Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
parent
9535d541c0
commit
7e50256f70
1 changed files with 7 additions and 0 deletions
|
@ -832,6 +832,13 @@ return view.extend({
|
|||
}
|
||||
};
|
||||
|
||||
so = ss.taboption('ipv6-ra', form.Value, 'ra_pref64', _('NAT64 prefix'), _('Announce NAT64 prefix in <abbr title="Router Advertisement">RA</abbr> 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 <abbr title="Router Advertisement">RA</abbr> interval'), _('Maximum time allowed between sending unsolicited <abbr title="Router Advertisement, ICMPv6 Type 134">RA</abbr>. Default is 600 seconds.'));
|
||||
so.optional = true;
|
||||
so.datatype = 'uinteger';
|
||||
|
|
Loading…
Reference in a new issue