summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_ndp.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-08-06 13:41:37 -0400
committerjim-p <jimp@pfsense.org>2013-08-06 13:42:13 -0400
commit9cd01cd65810b91cf3e601e1bd4278f8568ef634 (patch)
treedc0ae9f562286a89e94a3ea4c0d4ea074cd6debf /usr/local/www/diag_ndp.php
parent8ab8d853727e054c4f82d7a79e9761e17afaec09 (diff)
downloadpfsense-9cd01cd65810b91cf3e601e1bd4278f8568ef634.zip
pfsense-9cd01cd65810b91cf3e601e1bd4278f8568ef634.tar.gz
Add the MAC manufacturer code to the NDP table.
Diffstat (limited to 'usr/local/www/diag_ndp.php')
-rwxr-xr-xusr/local/www/diag_ndp.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/usr/local/www/diag_ndp.php b/usr/local/www/diag_ndp.php
index 885598f..91253b2 100755
--- a/usr/local/www/diag_ndp.php
+++ b/usr/local/www/diag_ndp.php
@@ -100,6 +100,9 @@ foreach ($data as &$entry) {
// Sort the data alpha first
$data = msort($data, "dnsresolve");
+// Load MAC-Manufacturer table
+$mac_man = load_mac_manufacturer_table();
+
$pgtitle = array(gettext("Diagnostics"),gettext("NDP Table"));
include("head.inc");
@@ -135,7 +138,14 @@ ob_implicit_flush(1);
<?php foreach ($data as $entry): ?>
<tr>
<td class="listlr"><?=$entry['ipv6'];?></td>
- <td class="listr"><?=$entry['mac'];?></td>
+ <td class="listr">
+ <?php
+ $mac=trim($entry['mac']);
+ $mac_hi = strtoupper($mac[0] . $mac[1] . $mac[3] . $mac[4] . $mac[6] . $mac[7]);
+ print $mac;
+ if(isset($mac_man[$mac_hi])){ print "<br/><font size=\"-2\"><i>{$mac_man[$mac_hi]}</i></font>"; }
+ ?>
+ </td>
<td class="listr">
<?php
echo "&nbsp;". str_replace("Z_ ", "", $entry['dnsresolve']);
OpenPOWER on IntegriCloud