myping

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 !
 

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux