Revize 891decbc
Přidáno uživatelem Ondřej Fibich před asi 7 roky(ů)
application/libraries/snmp/Mikrotik_Snmp.php | ||
---|---|---|
|
||
case 5:
|
||
$expires[$ip_address] = ($value != 4294967295) ? $value : '';
|
||
|
||
break;
|
||
|
||
case 8:
|
||
$leases[$ip_address] = network::bin2mac($value);
|
||
$leases[$ip_address] = network::bin2mac(mb_substr($value, -6));
|
||
break;
|
||
}
|
||
}
|
Také k dispozici: Unified diff
Refs #1075: Getting MAC from DHCP leases through SNMP on Mikrotik devices with RouterOS 6.35>= by ignoring leading 2 MAC octets. This fixes the issue in the develop branch.