Add the MAC manufacturer code to the DHCPv6 leases view.

This commit is contained in:
jim-p 2013-08-06 15:53:00 -04:00
parent 9cd01cd658
commit f7cd2ed826

View File

@ -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";