summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_ndp.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-08-17 21:31:23 -0400
committerjim-p <jimp@pfsense.org>2013-08-17 21:31:23 -0400
commit5d6d1958958d1dd95e6147c3b37f7f64a99e41d1 (patch)
treef63fb6e35da7c2498ea03897891fc19907b4cbfa /usr/local/www/diag_ndp.php
parent31202953719b1c30daf4e0f1bfeb64e95a969185 (diff)
downloadpfsense-5d6d1958958d1dd95e6147c3b37f7f64a99e41d1.zip
pfsense-5d6d1958958d1dd95e6147c3b37f7f64a99e41d1.tar.gz
Strip off scope before attempting to resolve the IPv6 IP here.
Diffstat (limited to 'usr/local/www/diag_ndp.php')
-rwxr-xr-xusr/local/www/diag_ndp.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/local/www/diag_ndp.php b/usr/local/www/diag_ndp.php
index 91253b2..0f9ef9b 100755
--- a/usr/local/www/diag_ndp.php
+++ b/usr/local/www/diag_ndp.php
@@ -79,6 +79,7 @@ foreach ($rawdata as $line) {
function _getHostName($mac,$ip)
{
if(is_ipaddr($ip)) {
+ list($ip, $scope) = explode("%", $ip);
if(gethostbyaddr($ip) <> "" and gethostbyaddr($ip) <> $ip)
return gethostbyaddr($ip);
else
OpenPOWER on IntegriCloud