aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/iputils/files/debian/add-icmp-return-codes.diff
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/iputils/files/debian/add-icmp-return-codes.diff')
-rw-r--r--recipes/iputils/files/debian/add-icmp-return-codes.diff41
1 files changed, 41 insertions, 0 deletions
diff --git a/recipes/iputils/files/debian/add-icmp-return-codes.diff b/recipes/iputils/files/debian/add-icmp-return-codes.diff
new file mode 100644
index 0000000000..29bd7d1df3
--- /dev/null
+++ b/recipes/iputils/files/debian/add-icmp-return-codes.diff
@@ -0,0 +1,41 @@
+Index: iputils/ping.c
+===================================================================
+--- iputils.orig/ping.c 2007-12-09 20:32:35.000000000 -0500
++++ iputils/ping.c 2007-12-09 20:32:59.000000000 -0500
+@@ -865,9 +865,36 @@
+ case ICMP_SR_FAILED:
+ printf("Source Route Failed\n");
+ break;
++ case ICMP_NET_UNKNOWN:
++ printf("Destination Net Unknown\n");
++ break;
++ case ICMP_HOST_UNKNOWN:
++ printf("Destination Host Unknown\n");
++ break;
++ case ICMP_HOST_ISOLATED:
++ printf("Source Host Isolated\n");
++ break;
++ case ICMP_NET_ANO:
++ printf("Destination Net Prohibited\n");
++ break;
++ case ICMP_HOST_ANO:
++ printf("Destination Host Prohibited\n");
++ break;
++ case ICMP_NET_UNR_TOS:
++ printf("Destination Net Unreachable for Type of Service\n");
++ break;
++ case ICMP_HOST_UNR_TOS:
++ printf("Destination Host Unreachable for Type of Service\n");
++ break;
+ case ICMP_PKT_FILTERED:
+ printf("Packet filtered\n");
+ break;
++ case ICMP_PREC_VIOLATION:
++ printf("Precedence Violation\n");
++ break;
++ case ICMP_PREC_CUTOFF:
++ printf("Precedence Cutoff\n");
++ break;
+ default:
+ printf("Dest Unreachable, Bad Code: %d\n", code);
+ break;