Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- thuovila@kone:~/src/misc/misc$ diff -u ping.c /tmp/ping.c
- --- ping.c 2014-12-19 12:44:21.927164702 +0200
- +++ /tmp/ping.c 1988-03-23 09:43:17.000000000 +0200
- @@ -353,7 +353,7 @@
- if( pingflags & VERBOSE )
- printf("packet too short (%d bytes) from %s\n", cc,
- inet_ntoa(ntohl(from->sin_addr.s_addr)));
- - return 0;
- + return;
- }
- /* Now the ICMP part */
- @@ -361,7 +361,7 @@
- icp = (struct icmp *)(buf + hlen);
- if( icp->icmp_type == ICMP_ECHOREPLY ) {
- if( icp->icmp_id != ident )
- - return 0; /* 'Twas not our ECHO */
- + return; /* 'Twas not our ECHO */
- nreceived++;
- if (timing) {
- @@ -380,7 +380,7 @@
- }
- if( pingflags & QUIET )
- - return 0;
- + return;
- if( pingflags & FLOOD ) {
- putchar('\b');
- @@ -397,7 +397,7 @@
- } else {
- /* We've got something other than an ECHOREPLY */
- if( !(pingflags & VERBOSE) )
- - return 0;
- + return;
- printf("%d bytes from %s: ",
- cc, pr_addr(ntohl(from->sin_addr.s_addr)) );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement