Hello !
I wrote a programm like a PING to learn ICMP ,but I find that
it can get correct relay from my own net card ,such as eth0 ,but when I use
myping 192.168.2.131 (other one 's machine ),it sent packets and no come back !
I used gdb and traced into the function ,I found that after the recvfrom
function, like
n = recvfrom (......);
if (n<0) {
if ( errno ==
EINTR) {
printf("error\n");
the errno is EINTR ,why and what is it ? how can I recieve the
turnback packets from other machine ?
Thanks a lot !
|