5 return network
.registerProtocol('hnet', {
7 return _('Automatic Homenet (HNCP)');
10 getOpkgPackage: function() {
14 renderFormOptions: function(s
) {
15 var dev
= this.getL2Device() || this.getDevice(), o
;
17 o
= s
.taboption('general', form
.ListValue
, 'mode', _('Category'));
18 o
.value('auto', _('Automatic'));
19 o
.value('external', _('External'));
20 o
.value('internal', _('Internal'));
21 o
.value('leaf', _('Leaf'));
22 o
.value('guest', _('Guest'));
23 o
.value('adhoc', _('Ad-Hoc'));
24 o
.value('hybrid', _('Hybrid'));
27 s
.taboption('advanced', form
.Value
, 'link_id', _('IPv6 assignment hint'), _('Assign prefix parts using this hexadecimal subprefix ID for this interface.'));
29 o
= s
.taboption('advanced', form
.Value
, 'ip4assign', _('IPv4 assignment length'));
30 o
.datatype
= 'max(32)';
33 o
= s
.taboption('advanced', form
.Value
, 'dnsname', _('DNS-Label / FQDN'));
34 o
.default = s
.section
;
36 o
= s
.taboption('advanced', form
.Value
, 'macaddr', _('Override MAC address'));
37 o
.datatype
= 'macaddr';
38 o
.placeholder
= dev
? (dev
.getMAC() || '') : '';
40 o
= s
.taboption('advanced', form
.Value
, 'mtu', _('Override MTU'));
41 o
.datatype
= 'max(9200)';
42 o
.placeholder
= dev
? (dev
.getMTU() || '1500') : '1500';