diff --git a/ping/ping.c b/ping/ping.c index 15ca247f..22c0dba9 100644 --- a/ping/ping.c +++ b/ping/ping.c @@ -353,7 +353,6 @@ main(int argc, char **argv) .ni.subject_type = -1, }; unsigned char buf[sizeof(struct in6_addr)]; - struct in6_addr a6; /* FIXME: global_rts will be removed in future */ global_rts = &rts; @@ -621,14 +620,6 @@ main(int argc, char **argv) hints.ai_socktype = SOCK_RAW; } - if (inet_pton(AF_INET6, target, &a6) && IN6_IS_ADDR_V4MAPPED(&a6)) { - target = strrchr(target, ':') + 1; - hints.ai_family = AF_INET; - - if (rts.opt_verbose) - error(0, 0, _("IPv4-Mapped-in-IPv6 address, using IPv4 %s"), target); - } - if (hints.ai_family != AF_INET6) { create_socket(&rts, &sock4, AF_INET, hints.ai_socktype, IPPROTO_ICMP, hints.ai_family == AF_INET);