diff options
Diffstat (limited to 'meta/recipes-extended/iputils/files/debian/add-icmp-return-codes.diff')
-rw-r--r-- | meta/recipes-extended/iputils/files/debian/add-icmp-return-codes.diff | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-extended/iputils/files/debian/add-icmp-return-codes.diff b/meta/recipes-extended/iputils/files/debian/add-icmp-return-codes.diff new file mode 100644 index 0000000000..86bbf0d39a --- /dev/null +++ b/meta/recipes-extended/iputils/files/debian/add-icmp-return-codes.diff | |||
@@ -0,0 +1,41 @@ | |||
1 | Index: trunk/ping.c | ||
2 | =================================================================== | ||
3 | --- trunk.orig/ping.c 2010-05-07 23:13:54.000000000 -0700 | ||
4 | +++ trunk/ping.c 2010-05-07 23:23:22.000000000 -0700 | ||
5 | @@ -883,9 +883,36 @@ | ||
6 | case ICMP_SR_FAILED: | ||
7 | printf("Source Route Failed\n"); | ||
8 | break; | ||
9 | + case ICMP_NET_UNKNOWN: | ||
10 | + printf("Destination Net Unknown\n"); | ||
11 | + break; | ||
12 | + case ICMP_HOST_UNKNOWN: | ||
13 | + printf("Destination Host Unknown\n"); | ||
14 | + break; | ||
15 | + case ICMP_HOST_ISOLATED: | ||
16 | + printf("Source Host Isolated\n"); | ||
17 | + break; | ||
18 | + case ICMP_NET_ANO: | ||
19 | + printf("Destination Net Prohibited\n"); | ||
20 | + break; | ||
21 | + case ICMP_HOST_ANO: | ||
22 | + printf("Destination Host Prohibited\n"); | ||
23 | + break; | ||
24 | + case ICMP_NET_UNR_TOS: | ||
25 | + printf("Destination Net Unreachable for Type of Service\n"); | ||
26 | + break; | ||
27 | + case ICMP_HOST_UNR_TOS: | ||
28 | + printf("Destination Host Unreachable for Type of Service\n"); | ||
29 | + break; | ||
30 | case ICMP_PKT_FILTERED: | ||
31 | printf("Packet filtered\n"); | ||
32 | break; | ||
33 | + case ICMP_PREC_VIOLATION: | ||
34 | + printf("Precedence Violation\n"); | ||
35 | + break; | ||
36 | + case ICMP_PREC_CUTOFF: | ||
37 | + printf("Precedence Cutoff\n"); | ||
38 | + break; | ||
39 | default: | ||
40 | printf("Dest Unreachable, Bad Code: %d\n", code); | ||
41 | break; | ||