mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Add the MAC manufacturer code to the DHCPv6 leases view.
This commit is contained in:
parent
9cd01cd658
commit
f7cd2ed826
@ -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} </td>\n";
|
||||
if ($data['type'] != "static") {
|
||||
echo "<td class=\"listr\">{$fspans}" . adjust_gmt($data['start']) . "{$fspane} </td>\n";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user