Revision 7afcbe23
Added by Jim Pingle almost 12 years ago
usr/local/www/diag_ndp.php | ||
---|---|---|
100 | 100 |
// Sort the data alpha first |
101 | 101 |
$data = msort($data, "dnsresolve"); |
102 | 102 |
|
103 |
// Load MAC-Manufacturer table |
|
104 |
$mac_man = load_mac_manufacturer_table(); |
|
105 |
|
|
103 | 106 |
$pgtitle = array(gettext("Diagnostics"),gettext("NDP Table")); |
104 | 107 |
include("head.inc"); |
105 | 108 |
|
... | ... | |
135 | 138 |
<?php foreach ($data as $entry): ?> |
136 | 139 |
<tr> |
137 | 140 |
<td class="listlr"><?=$entry['ipv6'];?></td> |
138 |
<td class="listr"><?=$entry['mac'];?></td> |
|
141 |
<td class="listr"> |
|
142 |
<?php |
|
143 |
$mac=trim($entry['mac']); |
|
144 |
$mac_hi = strtoupper($mac[0] . $mac[1] . $mac[3] . $mac[4] . $mac[6] . $mac[7]); |
|
145 |
print $mac; |
|
146 |
if(isset($mac_man[$mac_hi])){ print "<br/><font size=\"-2\"><i>{$mac_man[$mac_hi]}</i></font>"; } |
|
147 |
?> |
|
148 |
</td> |
|
139 | 149 |
<td class="listr"> |
140 | 150 |
<?php |
141 | 151 |
echo " ". str_replace("Z_ ", "", $entry['dnsresolve']); |
Also available in: Unified diff
Add the MAC manufacturer code to the NDP table.