summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/status_dhcpv6_leases.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/usr/local/www/status_dhcpv6_leases.php b/usr/local/www/status_dhcpv6_leases.php
index d3f310b..f891728 100644
--- a/usr/local/www/status_dhcpv6_leases.php
+++ b/usr/local/www/status_dhcpv6_leases.php
@@ -87,6 +87,9 @@ if (($_GET['deleteip']) && (is_ipaddr($_GET['deleteip']))) {
header("Location: status_dhcpv6_leases.php?all={$_GET['all']}");
}
+// Load MAC-Manufacturer table
+$mac_man = load_mac_manufacturer_table();
+
include("head.inc");
?>
@@ -448,7 +451,14 @@ foreach ($leases as $data) {
if (!empty($data['hostname'])) {
echo htmlentities($data['hostname']) . "<br/>";
}
- echo htmlentities($ndpdata[$data['ip']]['mac']);
+
+ $mac=trim($ndpdata[$data['ip']]['mac']);
+ if (!empty($mac)) {
+ $mac_hi = strtoupper($mac[0] . $mac[1] . $mac[3] . $mac[4] . $mac[6] . $mac[7]);
+ print htmlentities($mac);
+ if(isset($mac_man[$mac_hi])){ print "<br/><font size=\"-2\"><i>{$mac_man[$mac_hi]}</i></font>"; }
+ }
+
echo "{$fspane}&nbsp;</td>\n";
if ($data['type'] != "static") {
echo "<td class=\"listr\">{$fspans}" . adjust_gmt($data['start']) . "{$fspane}&nbsp;</td>\n";
OpenPOWER on IntegriCloud