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
signature.asc
Description: Digital signature

