summaryrefslogtreecommitdiff
path: root/recipes/iputils/files/tracepath6-mtu-opt.patch
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
committerDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
commit709c4d66e0b107ca606941b988bad717c0b45d9b (patch)
tree37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/iputils/files/tracepath6-mtu-opt.patch
parentfa6cd5a3b993f16c27de4ff82b42684516d433ba (diff)
rename packages/ to recipes/ per earlier agreement
See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Mike Westerhof <mwester@dls.net> Acked-by: Philip Balister <philip@balister.org> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <hrw@openembedded.org> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/iputils/files/tracepath6-mtu-opt.patch')
-rw-r--r--recipes/iputils/files/tracepath6-mtu-opt.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/recipes/iputils/files/tracepath6-mtu-opt.patch b/recipes/iputils/files/tracepath6-mtu-opt.patch
new file mode 100644
index 0000000000..63c8e76b3a
--- /dev/null
+++ b/recipes/iputils/files/tracepath6-mtu-opt.patch
@@ -0,0 +1,35 @@
+This patch adds a manual option to set the MTU. The method to determine the
+local MTU is failing on sh4/2.6.14. It's not yet clear if this is an sh4,
+2.6.14 and glibc bug. The manual mtu option allows tracepath6 to still be
+used on this platform.
+
+--- new/tracepath6.c 2005/11/14 13:03:19 1.1
++++ new/tracepath6.c 2005/11/14 13:04:24
+@@ -267,7 +267,7 @@
+
+ static void usage(void)
+ {
+- fprintf(stderr, "Usage: tracepath6 [-n] [-b] <destination>[/<port>]\n");
++ fprintf(stderr, "Usage: tracepath6 [-n] [-b] [-m <mtu>] <destination>[/<port>]\n");
+ exit(-1);
+ }
+
+@@ -282,7 +282,7 @@
+ struct hostent *he;
+ int ch;
+
+- while ((ch = getopt(argc, argv, "nbh?")) != EOF) {
++ while ((ch = getopt(argc, argv, "nbh?m:")) != EOF) {
+ switch(ch) {
+ case 'n':
+ no_resolve = 1;
+@@ -290,6 +290,9 @@
+ case 'b':
+ show_both = 1;
+ break;
++ case 'm':
++ mtu = atol(optarg);
++ break;
+ default:
+ usage();
+ }