Re: broken IPv6 code
YOSHIFUJI Hideaki / 吉藤英明 wrote:
> 1) if AI_PASSIVE is set to the ai_flags member in the 3rd argument,
> getaddrinfo() will try to "look-up" unspecific addresses;
> :: for ipv6, 0.0.0.0 for ipv4.
Ok, this is the case I meant. Just (try to) set AI_PASSIVE and bind to all
"unspecified" addresses getaddrinfo() returns.
> If the AI_ADDRCONFIG flag is specified then a look-up for ipv6 address
> should occur only if the node has at least one IPv6 source address
> configured and a look-up for ipv4 should occur only if the node has
> at least one IPv4 source address configured.
> Note: loopback addresses are not considered as configured sources addresses.
>
> Last paragraph is rfc2553bis thing, and USAGI glibc 2.1 and 2.2
> have this functionality.
Would be very nice to have in standard glibc 2.2. Any plans of merging soon ?
best greets,
Rene
Reply to: