[liboping] Bug#594688: please use/respect getaddrinfo(3)
Sebastian Harl
tokkee at debian.org
Fri Sep 3 16:28:56 CEST 2010
Hi Martin,
thanks for reporting this!
On Sat, Aug 28, 2010 at 01:31:56PM +0200, martin f krafft wrote:
> Even though oping seems to be using getaddrinfo(3) already, it does
> not appear to make use of or respect /etc/gai.conf.
>
> By default then, if a host has both AAAA and A records, oping would
> use IPv6 over IPv4. If one wanted it the other way around, one would
> modify the precedence in /etc/gai.conf (see gai.conf(5)).
>
> My default is for IPv6, but oping pings using IPv4 if it has the
> choice.
Hrm, unless I missed something, oping uses the first address returned by
getaddrinfo(3). According to the manpage, the list of returned addresses
is sorted according to RFC 3484 and, thus, should respect gai.conf(5).
Could you please provide a sample gai.conf that can be used to reproduce
that? Do other tools (e.g. mtr) behave correctly?
TIA,
Sebastian
--
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/
Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://mailman.verplant.org/pipermail/liboping/attachments/20100903/7ecc867b/attachment.pgp>
More information about the liboping
mailing list