summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_interfaces.php
diff options
context:
space:
mode:
authorEvgeny <ey@tm-k.com>2010-11-24 01:06:06 -0500
committerBill Marquette <bill.marquette@gmail.com>2011-05-14 11:23:05 -0500
commit57f2840e1faacf50b1a93d7954bb576eca77475b (patch)
tree6a688cb6a2e1ba3552c38c071201b44d59a4cb29 /usr/local/www/status_interfaces.php
parent92ca10c1f6657ac1911c5eaa0fea97bdd948466f (diff)
downloadpfsense-57f2840e1faacf50b1a93d7954bb576eca77475b.zip
pfsense-57f2840e1faacf50b1a93d7954bb576eca77475b.tar.gz
MAC prefix to vendor resolution at Status->Interfaces, Status->DHCP leases, Diagnostics->ARP table
Diffstat (limited to 'usr/local/www/status_interfaces.php')
-rwxr-xr-xusr/local/www/status_interfaces.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/usr/local/www/status_interfaces.php b/usr/local/www/status_interfaces.php
index 266d36b..6c98a34 100755
--- a/usr/local/www/status_interfaces.php
+++ b/usr/local/www/status_interfaces.php
@@ -68,6 +68,8 @@ include("head.inc");
$ifdescrs = get_configured_interface_with_descr(false, true);
foreach ($ifdescrs as $ifdescr => $ifname):
$ifinfo = get_interface_info($ifdescr);
+ // Load MAC-Manufacturer table
+ $mac_man = load_mac_manufacturer_table();
?>
<?php if ($i): ?>
<tr>
@@ -175,7 +177,12 @@ include("head.inc");
<tr>
<td width="22%" class="vncellt"><?=gettext("MAC address");?></td>
<td width="78%" class="listr">
- <?=htmlspecialchars($ifinfo['macaddr']);?>
+ <?php
+ $mac=$ifinfo['macaddr'];
+ $mac_hi = strtoupper($mac[0] . $mac[1] . $mac[3] . $mac[4] . $mac[6] . $mac[7]);
+ if(isset($mac_man[$mac_hi])){ print "<span title=\"$mac\">" . htmlspecialchars($mac_man[$mac_hi]); print "</span>"; }
+ else {print htmlspecialchars($mac);}
+ ?>
</td>
</tr>
<?php endif; if ($ifinfo['status'] != "down"): ?>
OpenPOWER on IntegriCloud