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,'host_uniq',_('Host-Uniq tag content'),_('Raw hex-encoded bytes. Leave empty unless your ISP require this'));
o.placeholder=_('auto');
o.datatype='hexstring';
o=s.taboption('advanced',form.Value,'demand',_('Inactivity timeout'),_('Close inactive connection after the given amount of seconds, use 0 to persist connection'));