From: eric@certus.bz
To: netdev@vger.kernel.org
Subject: ping6
Date: Mon, 18 Jul 2011 14:23:33 -0600 [thread overview]
Message-ID: <fa4b41e8992b983d77dc2b57c72431e7.squirrel@charon> (raw)
Hi,
I've found what I think is a bug in the ping6 tool. Without the -n option,
it puts the hostname inside the parenthesis instead of the resolved ip
address as demonstrated below:
ericat@hydra:~/iputils-s20101006$ ping6 ipv6.he.net
PING ipv6.he.net(ipv6.he.net) 56 data bytes
64 bytes from ipv6.he.net: icmp_seq=1 ttl=58 time=186 ms
I expect output like this:
ericat@hydra:~/iputils-s20101006$ sudo ./ping6 ipv6.he.net
Password:
PING ipv6.he.net(2001:470:0:64::2) 56 data bytes
64 bytes from ipv6.he.net: icmp_seq=1 ttl=58 time=187 ms
Here's a very simple patch to ping6.c for proper behaviour:
ericat@hydra:~/iputils-s20101006$ diff ping6.c.orig ping6.c
979c979
< printf("PING %s(%s) ", hostname, pr_addr(&whereto.sin6_addr));
---
> printf("PING %s(%s) ", hostname, pr_addr_n(&whereto.sin6_addr));
Cheers,
Eric Atkin
next reply other threads:[~2011-07-18 20:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-18 20:23 eric [this message]
[not found] ` <CALJXSJqwiW0b-uM0YzNnPG1V3sR3q9J4M9_hhufK+ZFWW=Gdrg@mail.gmail.com>
2011-07-19 2:06 ` ping6 Jérôme Poulin
2011-07-19 13:53 ` ping6 Krzysztof Olędzki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fa4b41e8992b983d77dc2b57c72431e7.squirrel@charon \
--to=eric@certus.bz \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox