o=s.taboption('advanced',form.ListValue,'ipv6',_('Obtain IPv6-Address'),_('Enable IPv6 negotiation on the PPP link'));
o.value('auto',_('Automatic'));
o.value('0',_('Disabled'));
o.value('1',_('Manual'));
o.default='auto';
}
o=s.taboption('advanced',form.Flag,'defaultroute',_('Use default gateway'),_('If unchecked, no default route is configured'));
o.default=o.enabled;
o=s.taboption('advanced',form.Flag,'peerdns',_('Use DNS servers advertised by peer'),_('If unchecked, the advertised DNS server addresses are ignored'));
o.default=o.enabled;
o=s.taboption('advanced',form.DynamicList,'dns',_('Use custom DNS servers'));
o=s.taboption('advanced',form.Value,'_keepalive_failure',_('LCP echo failure threshold'),_('Presume peer to be dead after given amount of LCP echo failures, use 0 to ignore failures'));
o.placeholder='0';
o.datatype='uinteger';
o.write=write_keepalive;
o.remove=write_keepalive;
o.cfgvalue=function(section_id){
varv=uci.get('network',section_id,'keepalive');
if(typeof(v)=='string'&&v!=''){
varm=v.match(/^(\d+)[ ,]\d+$/);
returnm?m[1]:v;
}
};
o=s.taboption('advanced',form.Value,'_keepalive_interval',_('LCP echo interval'),_('Send LCP echo requests at the given interval in seconds, only effective in conjunction with failure threshold'));
o.placeholder='5';
o.datatype='min(1)';
o.write=write_keepalive;
o.remove=write_keepalive;
o.cfgvalue=function(section_id){
varv=uci.get('network',section_id,'keepalive');
if(typeof(v)=='string'&&v!=''){
varm=v.match(/^\d+[ ,](\d+)$/);
returnm?m[1]:v;
}
};
o=s.taboption('advanced',form.Value,'demand',_('Inactivity timeout'),_('Close inactive connection after the given amount of seconds, use 0 to persist connection'));