mirror of
https://github.com/gbudny93/RouterOS_Useful_Scripts.git
synced 2025-07-02 22:34:30 +02:00
20 lines
318 B
Text
20 lines
318 B
Text
# RouterOS Function
|
|
# Copyright (c) Grzegorz Budny
|
|
# ARP/RARP Function (shortange syntax)
|
|
|
|
:global R_ARP do={
|
|
|
|
:if ($mode="ARP") do={
|
|
|
|
:return [/ip arp print where mac-address=$ip];
|
|
|
|
}
|
|
|
|
:if ($mode="RARP") do={
|
|
|
|
:return [/ip arp print where mac-address=$mac];
|
|
|
|
}
|
|
}
|
|
|
|
$R_ARP mode=mode;
|