icmpEcho() routine sends an ICMP
int icmpEcho(ip_addr host, char *data, unsigned length, unshort pingseq);
Is the host to ping (32-bit, local-endian).
Is the ping data. This is set to NULL in a don’t care case.
Is the total desired length of the packet on media.
Is the ping sequence number.
This routine is callable from applications. It sends a single
ping (ICMP echo request) to the specified host. The application
must provide an appropriate
if ping replies are to be checked.
Returns one of the following values:
If the transmission was successful.
If an error occurred (see ENP_ error codes).