summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_arp.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-11-29 18:35:05 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-11-29 18:35:05 +0000
commit4dedef58571182525725abdc2afee9c4d700c12d (patch)
treede96b0bf43edf3a3078b50c9f23261f0cdfeb2bc /usr/local/www/diag_arp.php
parent4a6bb2ff780e15ad84e4ec510bfe9553cba567ff (diff)
downloadpfsense-4dedef58571182525725abdc2afee9c4d700c12d.zip
pfsense-4dedef58571182525725abdc2afee9c4d700c12d.tar.gz
If we cannot find a hostname in the dhcp database, attempt a gethostbyaddr() lookup
Diffstat (limited to 'usr/local/www/diag_arp.php')
-rwxr-xr-xusr/local/www/diag_arp.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/diag_arp.php b/usr/local/www/diag_arp.php
index beca7d1..43e2926 100755
--- a/usr/local/www/diag_arp.php
+++ b/usr/local/www/diag_arp.php
@@ -178,6 +178,8 @@ function getHostName($mac,$ip)
return $dhcpmac[$mac];
else if ($dhcpip[$ip])
return $dhcpip[$ip];
+ else if(gethostbyaddr($ip) <> "" and gethostbyaddr($ip) <> $ip)
+ return gethostbyaddr($ip);
else
return "&nbsp;";
}
OpenPOWER on IntegriCloud