The macro ICMP_HDR builds the first four bytes of an ICMP header, as defined in [RFC792]. For a valid ICMP message, at least for more bytes must be appended. The format of the rest of the message depends on the message type.
The macro ICMP_PCK prepends an IPv4 header to the partial ICMP
header constructed with ICMP_HDR.
The default value for $icmp_type (8) is the type code for an ICMP Echo message.
Example:
$identifier = 42 $sequence_number = 2 send ICMP_PCK($ip_ttl=4) ns: $identifier ns: $sequence_number