mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
global-functions: $GetMacVendor: detect locally administered addresses
https://en.wikipedia.org/wiki/MAC_address#Universal_vs._local_(U/L_bit)
This commit is contained in:
parent
c33e813f20
commit
84b5e77860
1 changed files with 4 additions and 0 deletions
|
@ -388,6 +388,10 @@
|
|||
:global CertificateAvailable;
|
||||
:global LogPrintExit2;
|
||||
|
||||
:if ([ :tonum ("0x" . [ :pick $Mac 0 [ :find $Mac ":" ] ]) ] & 2 = 2) do={
|
||||
:return "locally administered";
|
||||
}
|
||||
|
||||
:do {
|
||||
:if ([ $CertificateAvailable "R3" ] = false) do={
|
||||
$LogPrintExit2 warning $0 ("Downloading required certificate failed.") true;
|
||||
|
|
Loading…
Reference in a new issue