@PINGTIME — Attempts to ping the specified host.

Syntax:
%@PINGTIME[hostname,timeout,packetsize,ttl,flags]

hostnamehost name or dotted-quad IP address
timeoutin seconds, 1 to 300 (60)
packetsizein bytes, 12 to 65520 (64)
ttltime-to-live, 1 to 255
flagsbitmapped:
     1 try IPv6 first, before IPv4
     2 compare reply data against sent data

The hostname may be a user-defined macro or one of the predefined macros: #ROUTER, #DNS, and so on.

On success, @PINGTIME returns the response time in milliseconds. On error, it returns a negative number:

-1request timed out
-2host unreachable
-3bad or unknown hostname
-4other errors (out of memory?)
-10data mismatch (only when bit 1 of flags is set)

@PINGTIME does not set any of the variables or make a sound.