summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-02-03 04:23:09 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-02-03 04:23:09 +0000
commit94010532780eca19076afdf82439c82002bc06d9 (patch)
treeb5384e8f19f4e408b7c058700a6d761cbb376a4b
parente2bce3426dfbc3c74809ad7bcecdd33ceb5c9beb (diff)
downloadpfsense-94010532780eca19076afdf82439c82002bc06d9.zip
pfsense-94010532780eca19076afdf82439c82002bc06d9.tar.gz
Allow reserved IP addresses to fall within the DHCP Server range. DHCPD
does not barf with these changes, so why not?
-rwxr-xr-xusr/local/www/services_dhcp_edit.php5
1 files changed, 0 insertions, 5 deletions
diff --git a/usr/local/www/services_dhcp_edit.php b/usr/local/www/services_dhcp_edit.php
index b579023..44f7a62 100755
--- a/usr/local/www/services_dhcp_edit.php
+++ b/usr/local/www/services_dhcp_edit.php
@@ -109,11 +109,6 @@ if ($_POST) {
$dynsubnet_end = ip2long($config['dhcpd'][$if]['range']['to']);
$lansubnet_start = (ip2long($ifcfg['ipaddr']) & gen_subnet_mask_long($ifcfg['subnet']));
$lansubnet_end = (ip2long($ifcfg['ipaddr']) | (~gen_subnet_mask_long($ifcfg['subnet'])));
-
- if ((ip2long($_POST['ipaddr']) >= $dynsubnet_start) &&
- (ip2long($_POST['ipaddr']) <= $dynsubnet_end)) {
- $input_errors[] = "Static IP address falls within the dynamic client range.";
- }
if ((ip2long($_POST['ipaddr']) < $lansubnet_start) ||
(ip2long($_POST['ipaddr']) > $lansubnet_end)) {
$input_errors[] = "The IP address must lie in the {$ifcfg['descr']} subnet.";
OpenPOWER on IntegriCloud