diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-11-29 18:35:05 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-11-29 18:35:05 +0000 |
commit | 4dedef58571182525725abdc2afee9c4d700c12d (patch) | |
tree | de96b0bf43edf3a3078b50c9f23261f0cdfeb2bc /usr/local/www/diag_arp.php | |
parent | 4a6bb2ff780e15ad84e4ec510bfe9553cba567ff (diff) | |
download | pfsense-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-x | usr/local/www/diag_arp.php | 2 |
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 " "; } |