From 94010532780eca19076afdf82439c82002bc06d9 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 3 Feb 2008 04:23:09 +0000 Subject: [PATCH] Allow reserved IP addresses to fall within the DHCP Server range. DHCPD does not barf with these changes, so why not? --- usr/local/www/services_dhcp_edit.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/usr/local/www/services_dhcp_edit.php b/usr/local/www/services_dhcp_edit.php index b579023311..44f7a62e82 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.";