1 --- iputils/ping.c.OLD 2006-02-06 10:34:35.000000000 +0100
2 +++ iputils/ping.c 2006-02-06 10:34:35.000000000 +0100
5 printf("Source Route Failed\n");
7 + case ICMP_NET_UNKNOWN:
8 + printf("Destination Net Unknown\n");
10 + case ICMP_HOST_UNKNOWN:
11 + printf("Destination Host Unknown\n");
13 + case ICMP_HOST_ISOLATED:
14 + printf("Source Host Isolated\n");
17 + printf("Destination Net Prohibited\n");
20 + printf("Destination Host Prohibited\n");
22 + case ICMP_NET_UNR_TOS:
23 + printf("Destination Net Unreachable for Type of Service\n");
25 + case ICMP_HOST_UNR_TOS:
26 + printf("Destination Host Unreachable for Type of Service\n");
28 case ICMP_PKT_FILTERED:
29 printf("Packet filtered\n");
31 + case ICMP_PREC_VIOLATION:
32 + printf("Precedence Violation\n");
34 + case ICMP_PREC_CUTOFF:
35 + printf("Precedence Cutoff\n");
38 printf("Dest Unreachable, Bad Code: %d\n", code);
40 --- iputils/ping_common.c.OLD 2006-02-06 10:34:35.000000000 +0100
41 +++ iputils/ping_common.c 2006-02-06 10:34:35.000000000 +0100
45 printf(", pipe %d", pipesize);
46 - if (ntransmitted > 1 && (!interval || (options&(F_FLOOD|F_ADAPTIVE)))) {
47 + if (ntransmitted > 1 && nreceived && (!interval || (options&(F_FLOOD|F_ADAPTIVE)))) {
48 int ipg = (1000000*(long long)tv.tv_sec+tv.tv_usec)/(ntransmitted-1);
49 printf(", ipg/ewma %d.%03d/%d.%03d ms",
50 ipg/1000, ipg%1000, rtt/8000, (rtt/8)%1000);