<title>LAN » DHCP Server</title>
<link href="usr_main.css" rel="stylesheet" type="text/css">
- <script src="usr_menus.js" type="text/javascript"></script>
+ <link href="usr_menus.css" rel="stylesheet" type="text/css"><script src="usr_menus.js" type="text/javascript"></script><script src="usr_menus_build.js" type="text/javascript"></script>
<script src="usr_common.js" type="text/javascript"></script>
<meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
<script type="text/javascript" src="util.js"></script>
<script type="text/javascript">
<!-- hide
-setPageTitle("<%ejGetWl(wlInterface)%>");
+setPageTitle("<%ejGetWlJS(wlInterface)%>");
-var state = '<%ejGet(lanRefresh)%>';
+var state = '<%ejGetJS(lanRefresh)%>';
if ( state == '1' ) {
- var code = 'location.assign("lancfg2.cgi?lanRefresh=0")';
+ var code = 'location = "lancfg2.cgi?lanRefresh=0"';
eval(code);
}
-var dhcpStart = '<%ejGet(dhcpEthStart)%>';
-var dhcpEnd = '<%ejGet(dhcpEthEnd)%>';
-var dhcpLease = '<%ejGet(dhcpLeasedTime)%>';
+var dhcpStart = '<%ejGetJS(dhcpEthStart)%>';
+var dhcpEnd = '<%ejGetJS(dhcpEthEnd)%>';
+var dhcpLease = '<%ejGetJS(dhcpLeasedTime)%>';
var proto = '<%ejGetOther(sysInfo, noBrPrtcl)%>';
var ipExt = '<%ejGetOther(sysInfo, pppIpExtension)%>';
-var dhcpEnbl = '<%ejGet(enblDhcpSrv)%>';
+var dhcpEnbl = '<%ejGetJS(enblDhcpSrv)%>';
var natEnbl = '<%ejGetOther(sysInfo, enblNat)%>';
-var enblUpnp = '<%ejGet(enblUpnp)%>';
+var enblUpnp = '<%ejGetJS(enblUpnp)%>';
+var enblIgmpSnp = '<%ejGetJS(enblIgmpSnp)%>';
var buildUpnp = '<%ejGetOther(sysInfo, buildUpnp)%>';
-var enblStp = '<%ejGet(enblStp)%>';
+var enblStp = '<%ejGetJS(enblStp)%>';
function hideStpInfo(hide) {
var status = 'visible';
}
}
+function hideIgmpSnpInfo(hide) {
+ var status = 'visible';
+
+ if ( hide == 1 )
+ status = 'hidden';
+ if (document.getElementById) // DOM3 = IE5, NS6
+ document.getElementById('IGMPSnooping').style.visibility = status;
+ else {
+ if (document.layers == false) // IE4
+ document.all.iIGMPSnooping.style.visibility = status;
+ }
+}
+
function hideDhcpInfo(hide) {
var status = 'visible';
function frmLoad() {
with ( document.forms[0] ) {
- ethIpAddress.value = '<%ejGet(ethIpAddress)%>';
- ethSubnetMask.value = '<%ejGet(ethSubnetMask)%>';
+ ethIpAddress.value = '<%ejGetJS(ethIpAddress)%>';
+ ethSubnetMask.value = '<%ejGetJS(ethSubnetMask)%>';
if ( natEnbl == '1' && buildUpnp == '1' ) {
if ( enblUpnp == '1' )
} else
hideUpnpInfo(1);
+ if ( enblIgmpSnp == '1' )
+ chkIgmpSnp.checked = true;
+ else
+ chkIgmpSnp.checked = false;
+ hideIgmpSnpInfo(0);
+
+
// if protocol is Bridge or PPP IP extension
// then don't show DHCP info
if (proto == 'Bridge' || ipExt == '1')
disableDhcpSrvRelay();
}
}
- lan2IpAddress.value = '<%ejGet(lan2IpAddress)%>';
- lan2SubnetMask.value = '<%ejGet(lan2SubnetMask)%>';
- if ('<%ejGet(enblLan2)%>' == '1') {
+ lan2IpAddress.value = '<%ejGetJS(lan2IpAddress)%>';
+ lan2SubnetMask.value = '<%ejGetJS(lan2SubnetMask)%>';
+ if ('<%ejGetJS(enblLan2)%>' == '1') {
enblLan2.checked = true;
hideLan2Info(0);
} else {
else
loc += '&enblStp=0';
+ if ( chkIgmpSnp.checked == true )
+ loc += '&enblIgmpSnp=1';
+ else
+ loc += '&enblIgmpSnp=0';
if ( dhcpSrvType[1].checked == true ) {
if (isValidIpAddress(dhcpEthStart.value) == false ||
!(isSameSubNet(ethIpAddress.value, ethSubnetMask.value, dhcpEthStart.value, ethSubnetMask.value))) {
else
loc += '&enblLan2=0';
}
- var code = 'location.assign("' + loc + '")';
+ var code = 'location = "' + loc + '"';
eval(code);
}
function btnReset() {
var loc = 'rebootinfo.cgi';
- var code = 'location.assign("' + loc + '")';
+ var code = 'location = "' + loc + '"';
eval(code);
}
}
}
+function manualModDhcp() {
+ with ( document.forms[0] ) {
+ dhcpStart = dhcpEthStart.value;
+ dhcpEnd = dhcpEthEnd.value;
+ }
+}
// done hiding -->
</script>
<base target="_self">
</head>
-<body onload="initMenu('idMenu'); frmLoad();">
+<body onload="initMenu(); frmLoad();">
<script type="text/javascript">
- writeHeader("LAN", "<%ejGet(curUserName)%>", "<%ejGetOther(sysInfo, adslStd)%>", "<%ejGetOther(sysInfo, noBrPrtcl)%>", <%ejGetOther(sysInfo, pppIpExtension)%>, <%ejGetOther(sysInfo, enblFirewall)%>, <%ejGetOther(sysInfo, enblNat)%>, "<%ejGetWl(wlInterface)%>", <%ejGet(enblQos)%>);
+ writeHeader("LAN", "<%ejGetJS(curUserName)%>", "<%ejGetOther(sysInfo, adslStd)%>", "<%ejGetOther(sysInfo, noBrPrtcl)%>", <%ejGetOther(sysInfo, pppIpExtension)%>, <%ejGetOther(sysInfo, enblFirewall)%>, <%ejGetOther(sysInfo, enblNat)%>, "<%ejGetWlJS(wlInterface)%>", <%ejGetJS(enblQos)%>);
</script>
<form>
</div>
</div>
+<div id='IGMPSnooping'>
+<h3>IGMP Snooping</h3>
+<p><input type='checkbox' name='chkIgmpSnp' id='chkIgmpSnp'> <label for="chkIgmpSnp">IGMP Snooping</label></p>
+</div>
+
<div id='upnpInfo'>
<h3>Universal Plug-n-Play</h3>
<p><input type='checkbox' name='chkUpnp' id='chkUpnp'> <label for="chkUpnp">Universal Plug-n-Play (UPnP)</label></p>