ICMP Module
The module icmp
is used for sending ICMP Echo Request messages.
This module is useful only for xlat
. Use it via the following expansion:
The module will "ping" the given IP address. If that IP address responds
with an ICMP Echo Reply, then the result of the expansion will be yes
.
If that IP address does not respond within the timeout, then the result
of the expansion will be no
.
The IP address does not have to be a fixed string. It can be another expansion, such as:
Capabilities and Permissions
On Linux, you may need to do:
In order for the icmp
module to bind to a "raw" socket.
Configuration Settings
- interface
-
Which interface to use for sending ICMP packets.
By default, packets are sent via the normal routing table.
Specifying an interface forces the packets to be sent via that particular interface.
src_ipaddr: Source address for ICMP messages.
- timeout
-
How long to wait for the reply.
Default is 1
seconds, which should be plenty for nearly
anything. Range is 0.1s
to 10s
.
You are strongly encouraged to NOT increase this value. In fact, you are much better off decreasing it to a lower value. Doing so will improve network stability and responsiveness. |