aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/iputils/files/debian/use_gethostbyname2.diff
diff options
context:
space:
mode:
authorRadu Moisan <radu.moisan@intel.com>2013-07-10 12:24:11 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-07-13 18:23:32 +0100
commit5f863410d79aad9e9e368294ff37288bf36f4403 (patch)
treeb3ada5765e55de9a8bec66a5acf74322fdf786fa /meta/recipes-extended/iputils/files/debian/use_gethostbyname2.diff
parentdb9775f57a6634bfc0da5fedfde1b2df1768c8fa (diff)
downloadopenembedded-core-contrib-5f863410d79aad9e9e368294ff37288bf36f4403.tar.gz
iputils: Upgrade to v20121221
Removed obsolete patches Header for arping changed. New author added. Capability support enabled by default(upstream) -> added libcap to DEPENDS Gnutls enabled by default(upstream) -> switched from openssl to gnutls (From OE-Core rev: 52ca4ac9f3af16fe99b28eaeaff8bb52f86eb24c) Signed-off-by: Radu Moisan <radu.moisan@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/iputils/files/debian/use_gethostbyname2.diff')
-rw-r--r--meta/recipes-extended/iputils/files/debian/use_gethostbyname2.diff36
1 files changed, 18 insertions, 18 deletions
diff --git a/meta/recipes-extended/iputils/files/debian/use_gethostbyname2.diff b/meta/recipes-extended/iputils/files/debian/use_gethostbyname2.diff
index 1d01e151eb..d3b18868c0 100644
--- a/meta/recipes-extended/iputils/files/debian/use_gethostbyname2.diff
+++ b/meta/recipes-extended/iputils/files/debian/use_gethostbyname2.diff
@@ -1,31 +1,31 @@
Upstream-Status: Pending [from other distro Debian]
-Index: trunk/tracepath.c
+Index: iputils-s20121221/tracepath.c
===================================================================
---- trunk.orig/tracepath.c 2010-05-07 23:13:52.000000000 -0700
-+++ trunk/tracepath.c 2010-05-07 23:24:09.000000000 -0700
-@@ -338,9 +338,9 @@
- base_port = atoi(p+1);
- } else
- base_port = 44444;
-- he = gethostbyname(argv[0]);
+--- iputils-s20121221.orig/tracepath.c
++++ iputils-s20121221/tracepath.c
+@@ -370,9 +370,9 @@ main(int argc, char **argv)
+ }
+ #endif
+
+- he = gethostbyname(p);
+ he = gethostbyname2(argv[0], AF_INET);
if (he == NULL) {
- herror("gethostbyname");
+ herror("gethostbyname2");
exit(1);
}
- memcpy(&target.sin_addr, he->h_addr, 4);
-Index: trunk/ping.c
+
+Index: iputils-s20121221/ping.c
===================================================================
---- trunk.orig/ping.c 2010-05-07 23:23:22.000000000 -0700
-+++ trunk/ping.c 2010-05-07 23:24:09.000000000 -0700
-@@ -250,7 +250,7 @@
- if (argc == 1)
- options |= F_NUMERIC;
- } else {
-- hp = gethostbyname(target);
-+ hp = gethostbyname2(target, AF_INET);
+--- iputils-s20121221.orig/ping.c
++++ iputils-s20121221/ping.c
+@@ -279,7 +279,7 @@ main(int argc, char **argv)
+ #else
+ idn = target;
+ #endif
+- hp = gethostbyname(idn);
++ hp = gethostbyname2(idn, AF_INET);
if (!hp) {
fprintf(stderr, "ping: unknown host %s\n", target);
exit(2);