Ditch the sysvinit stuff
[profile/ivi/iputils.git] / packaging / iputils-ping_cleanup.patch
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
3 @@ -855,9 +855,36 @@
4                 case ICMP_SR_FAILED:
5                         printf("Source Route Failed\n");
6                         break;
7 +               case ICMP_NET_UNKNOWN:
8 +                       printf("Destination Net Unknown\n");
9 +                       break;
10 +               case ICMP_HOST_UNKNOWN:
11 +                       printf("Destination Host Unknown\n");
12 +                       break;
13 +               case ICMP_HOST_ISOLATED:
14 +                       printf("Source Host Isolated\n");
15 +                       break;
16 +               case ICMP_NET_ANO:
17 +                       printf("Destination Net Prohibited\n");
18 +                       break;
19 +               case ICMP_HOST_ANO:
20 +                       printf("Destination Host Prohibited\n");
21 +                       break;
22 +               case ICMP_NET_UNR_TOS:
23 +                       printf("Destination Net Unreachable for Type of Service\n");
24 +                       break;
25 +               case ICMP_HOST_UNR_TOS:
26 +                       printf("Destination Host Unreachable for Type of Service\n");
27 +                       break;
28                 case ICMP_PKT_FILTERED:
29                         printf("Packet filtered\n");
30                         break;
31 +               case ICMP_PREC_VIOLATION:
32 +                       printf("Precedence Violation\n");
33 +                       break;
34 +               case ICMP_PREC_CUTOFF:
35 +                       printf("Precedence Cutoff\n");
36 +                       break;
37                 default:
38                         printf("Dest Unreachable, Bad Code: %d\n", code);
39                         break;
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
42 @@ -819,7 +819,7 @@
43                 printf("%spipe %d", comma, pipesize);
44                 comma = ", ";
45         }
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("%sipg/ewma %d.%03d/%d.%03d ms",
50                        comma, ipg/1000, ipg%1000, rtt/8000, (rtt/8)%1000);