1 L.NetworkModel.Protocol.extend({
3 description: L.tr('IPv6-over-IPv4 (6to4)'),
7 populateForm: function(section, iface)
9 section.taboption('general', L.cbi.InputValue, 'ipaddr', {
10 caption: L.tr('Local IPv4 address'),
11 description: L.tr('Leave empty to use the current WAN address'),
14 }).load = function() {
15 var wan = L.NetworkModel.findWAN();
17 this.options.placeholder = wan.getIPv4Addrs()[0];
20 section.taboption('advanced', L.cbi.CheckboxValue, 'defaultroute', {
21 caption: L.tr('Default route'),
22 description: L.tr('Create IPv6 default route via tunnel'),
27 section.taboption('advanced', L.cbi.InputValue, 'ttl', {
28 caption: L.tr('Override TTL'),
29 description: L.tr('Specifies the Time-to-Live on the tunnel interface'),
30 datatype: 'range(1,255)',