Revision f7cd2ed8
Added by Jim Pingle about 12 years ago
usr/local/www/status_dhcpv6_leases.php | ||
---|---|---|
87 | 87 |
header("Location: status_dhcpv6_leases.php?all={$_GET['all']}"); |
88 | 88 |
} |
89 | 89 |
|
90 |
// Load MAC-Manufacturer table |
|
91 |
$mac_man = load_mac_manufacturer_table(); |
|
92 |
|
|
90 | 93 |
include("head.inc"); |
91 | 94 |
|
92 | 95 |
?> |
... | ... | |
448 | 451 |
if (!empty($data['hostname'])) { |
449 | 452 |
echo htmlentities($data['hostname']) . "<br/>"; |
450 | 453 |
} |
451 |
echo htmlentities($ndpdata[$data['ip']]['mac']); |
|
454 |
|
|
455 |
$mac=trim($ndpdata[$data['ip']]['mac']); |
|
456 |
if (!empty($mac)) { |
|
457 |
$mac_hi = strtoupper($mac[0] . $mac[1] . $mac[3] . $mac[4] . $mac[6] . $mac[7]); |
|
458 |
print htmlentities($mac); |
|
459 |
if(isset($mac_man[$mac_hi])){ print "<br/><font size=\"-2\"><i>{$mac_man[$mac_hi]}</i></font>"; } |
|
460 |
} |
|
461 |
|
|
452 | 462 |
echo "{$fspane} </td>\n"; |
453 | 463 |
if ($data['type'] != "static") { |
454 | 464 |
echo "<td class=\"listr\">{$fspans}" . adjust_gmt($data['start']) . "{$fspane} </td>\n"; |
Also available in: Unified diff
Add the MAC manufacturer code to the DHCPv6 leases view.