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:49 -0400
commit304161667b48e222562ab5905a0567bd3c9cff0c (patch)
tree97f2a6ab7d098172b31d61adb93042e106113bfa /usr/local/www/diag_ndp.php
parent44e72b7c2506c3dc8258439d9aa21a8cb60f8ba9 (diff)
downloadpfsense-304161667b48e222562ab5905a0567bd3c9cff0c.zip
pfsense-304161667b48e222562ab5905a0567bd3c9cff0c.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