diff --git a/src/www/status_dhcpv6_leases.php b/src/www/status_dhcpv6_leases.php
index 41335208b..f5b848c6a 100644
--- a/src/www/status_dhcpv6_leases.php
+++ b/src/www/status_dhcpv6_leases.php
@@ -447,8 +447,8 @@ endif;?>
=gettext("Interface"); ?> |
=gettext("IPv6 address"); ?> |
=gettext("IAID"); ?> |
- =gettext("DUID"); ?> |
- =gettext("Hostname/MAC"); ?> |
+ =gettext("DUID/MAC"); ?> |
+ =gettext("Hostname"); ?> |
=gettext("Description"); ?> |
=gettext("Start"); ?> |
=gettext("End"); ?> |
@@ -459,6 +459,7 @@ endif;?>
$data['if'] = convert_real_interface_to_friendly_interface_name(guess_interface_from_ip($data['ip']));
}
$data['int'] = htmlspecialchars($interfaces[$data['if']]['descr']);
+
+ $mac_from_ndp = !empty($ndpdata[$data['ip']]) ? $ndpdata[$data['ip']]['mac'] : "";
+ $vendor_from_ndp = empty($mac_from_ndp) ? "" : ($mac_man[strtoupper(implode("", explode(":", substr($mac_from_ndp, 0, 8))))] ?? "");
+
+ $mac_from_duid = "";
+ $duid_formatted = $data['duid'];
+ $duid_type = substr($data['duid'], 0, 5);
+ if ($duid_type === "00:01" || $duid_type === "00:03"){
+ $duid_subtype = substr($data['duid'], 6, 5);
+ if ($duid_subtype === "00:01") {
+ $mac_from_duid = substr($data['duid'], -17, 17);
+ $duid_formatted = substr($data['duid'], 0, strlen($data['duid']) - 17) . '' . $mac_from_duid . '';
+ }
+ }
+ $vendor_from_duid = empty($mac_from_duid) ? "" : ($mac_man[strtoupper(implode("", explode(":", substr($mac_from_duid, 0, 8))))] ?? "");
+
+ $duid_content = $duid_formatted;
+ if (!empty($vendor_from_duid)) {
+ $duid_content .= '
'.$vendor_from_duid.'';
+ }
+ if (!empty($mac_from_ndp) && $mac_from_duid !== $mac_from_ndp) {
+ $duid_content .= ''.gettext('NDP MAC').': '.$mac_from_ndp;
+ if (!empty($vendor_from_ndp)) {
+ $duid_content .= '
'.$vendor_from_ndp.'';
+ }
+ }
?>
| =$data['int'];?> |
=$data['ip'];?> |
=$data['iaid'];?> |
- =$data['duid'];?> |
+ =$duid_content;?> |
=!empty($data['hostname']) ? htmlentities($data['hostname']) : "";?>
- =!empty($ndpdata[$data['ip']]) ? $ndpdata[$data['ip']]['mac'] : "";?>
|
=htmlentities($data['descr']);?> |
=$data['type'] != "static" ? adjust_utc($data['start']) : "";?> |