diff options
author | jim-p <jimp@pfsense.org> | 2013-08-06 15:53:00 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2013-08-06 15:53:00 -0400 |
commit | f7cd2ed826ad92db5eb0b01dffe3da4c0bd31a1b (patch) | |
tree | 83ef523293ef6e56f2b3a3eccdb096dd4bd194a5 | |
parent | 9cd01cd65810b91cf3e601e1bd4278f8568ef634 (diff) | |
download | pfsense-f7cd2ed826ad92db5eb0b01dffe3da4c0bd31a1b.zip pfsense-f7cd2ed826ad92db5eb0b01dffe3da4c0bd31a1b.tar.gz |
Add the MAC manufacturer code to the DHCPv6 leases view.
-rw-r--r-- | usr/local/www/status_dhcpv6_leases.php | 12 |
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} </td>\n"; if ($data['type'] != "static") { echo "<td class=\"listr\">{$fspans}" . adjust_gmt($data['start']) . "{$fspane} </td>\n"; |