summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-04-27 09:12:09 -0300
committerRenato Botelho <garga@FreeBSD.org>2015-04-27 09:12:09 -0300
commit60dee68b1d3344a4d98eb7a33b240274c86303b1 (patch)
tree2eede6e0e69ac46f2dce9550b7f6cb888b49b307 /usr
parent437799b870f0490f7031ecd3d8a9c85e5227634a (diff)
parent49878b9e9d49205d69c6ec4354f4ca18cb277b36 (diff)
downloadpfsense-60dee68b1d3344a4d98eb7a33b240274c86303b1.zip
pfsense-60dee68b1d3344a4d98eb7a33b240274c86303b1.tar.gz
Merge pull request #1631 from phil-davis/patch-5
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/status_dhcp_leases.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/usr/local/www/status_dhcp_leases.php b/usr/local/www/status_dhcp_leases.php
index 24c41b8..158a733 100644
--- a/usr/local/www/status_dhcp_leases.php
+++ b/usr/local/www/status_dhcp_leases.php
@@ -371,6 +371,17 @@ foreach ($leases as $data) {
$data['if'] = $dhcpif;
break;
}
+ // Check if the IP is in the range of any DHCP pools
+ if (is_array($dhcpifconf['pool'])) {
+ foreach ($dhcpifconf['pool'] as $dhcppool) {
+ if (is_array($dhcppool['range'])) {
+ if (($lip >= ip2ulong($dhcppool['range']['from'])) && ($lip <= ip2ulong($dhcppool['range']['to']))) {
+ $data['if'] = $dhcpif;
+ break 2;
+ }
+ }
+ }
+ }
}
}
echo "<tr>\n";
OpenPOWER on IntegriCloud