ICMP echo packet

Randy Buckland rcb at ccpv1.ncsu.edu
Mon Mar 19 23:55:06 AEST 1990


I am trying to write some code that will do the equivalent of a ping.
It is sending an icmp echo packet to a given address and waiting for the
return. I have source and looked at the source for ping to get this working and
using a network monitor, I can see that the packet is going out and the
response coming back. However, the "sendto" call that sends the packet
is returning -1 and the errno variable has the value EINTR. What does
EINTR mean in this case? The packet is being sent corectly. Why is the
system call being interrupted?


Randy Buckland
rcb at ncsuvx.ncsu.edu



More information about the Comp.unix.questions mailing list