summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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