I’m not too confident that this is right but testing seems to suggest that it gives the same answers as in_cksum in ping.c, timeout)

Returns either the delay (in seconds) or none on timeout., ID, timeout)

receive the ping from the socket., dest_addr, ID)

Send one ping to the given >dest_addr<., timeout=2, count=4)

Send >count< ping to >dest_addr< with the given >timeout< and display the result.