protocols: add legacymap option for map 4355/head
authorRemi NGUYEN VAN <remi.nguyenvan+openwrt@gmail.com>
Sat, 15 Aug 2020 14:32:49 +0000 (23:32 +0900)
committerRemi NGUYEN VAN <remi.nguyenvan+openwrt@gmail.com>
Sun, 16 Aug 2020 01:47:11 +0000 (10:47 +0900)
legacymap causes map to use the legacy IPv6 Interface Identifier format
that was described in draft-ietf-softwire-map-00, but was eventually
changed in RFC7597. It is however still used by some major ISPs,
including in Japan.

Signed-off-by: Remi NGUYEN VAN <remi.nguyenvan+openwrt@gmail.com>
protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/map.js

index 006ebfbf08951461df2eb3b15b5ebe01c9849480..2c7f3cfe9775ece92ad40a24b9d3ad6f8dbf7695 100644 (file)
@@ -92,5 +92,7 @@ return network.registerProtocol('map', {
                o = s.taboption('advanced', form.Value, 'mtu', _('Use MTU on tunnel interface'));
                o.placeholder = '1280';
                o.datatype    = 'max(9200)';
+
+               o = s.taboption('advanced', form.Flag, 'legacymap', _('Use legacy MAP'), _('Use legacy MAP interface identifier format (draft-ietf-softwire-map-00) instead of RFC7597'));
        }
 });