- s.taboption('general', form.DynamicList, 'dns', _('Use custom DNS servers'));
-
- o = s.taboption('general', form.Value, 'ip6assign', _('IPv6 assignment length'), _('Assign a part of given length of every public IPv6-prefix to this interface'));
- o.value('', _('disabled'));
- o.value('64');
- o.datatype = 'max(64)';
-
- o = s.taboption('general', form.Value, 'ip6hint', _('IPv6 assignment hint'), _('Assign prefix parts using this hexadecimal subprefix ID for this interface.'));
- o.placeholder = '0';
- o.validate = function(section_id, value) {
- if (value == null || value == '')
- return true;
-
- var n = parseInt(value, 16);
-
- if (!/^(0x)?[0-9a-fA-F]+$/.test(value) || isNaN(n) || n >= 0xffffffff)
- return _('Expecting a hexadecimal assignment hint');
-
- return true;
- };
- for (var i = 33; i <= 64; i++)
- o.depends('ip6assign', String(i));