summaryrefslogtreecommitdiffstats
path: root/usr
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:41:37 -0400
commit7afcbe23cd10d58fec2a12e1d1da3dcb885a00e1 (patch)
tree1576312987256f204e4b9a380bc9f96568e92f92 /usr
parentb1ea7072d637aa663a28d7548fb1240ad096671f (diff)
downloadpfsense-7afcbe23cd10d58fec2a12e1d1da3dcb885a00e1.zip
pfsense-7afcbe23cd10d58fec2a12e1d1da3dcb885a00e1.tar.gz
Add the MAC manufacturer code to the NDP table.
Diffstat (limited to 'usr')
-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