Re: Does AI_ADDRCONFIG really work?

2005-04-24 Thread Hrvoje Niksic
Mauro Tortonesi <[EMAIL PROTECTED]> writes: > there is another possible solution. reordering the addresses > returned by getaddrinfo so that IPv4 addresses are at the beginning > of the list. [...] > i think that the best think we can do right now is reordering the > addresses returned by getaddri

Re: Does AI_ADDRCONFIG really work?

2005-04-20 Thread Mauro Tortonesi
On Wednesday 20 April 2005 04:47 am, you wrote: > Mauro Tortonesi <[EMAIL PROTECTED]> writes: > > there is another possible solution. reordering the addresses returned by > > getaddrinfo so that IPv4 addresses are at the beginning of the list. > > Will that cause problems in some setups? on IPv6-o

Re: Does AI_ADDRCONFIG really work?

2005-04-20 Thread Hrvoje Niksic
Mauro Tortonesi <[EMAIL PROTECTED]> writes: > there is another possible solution. reordering the addresses returned by > getaddrinfo so that IPv4 addresses are at the beginning of the list. Will that cause problems in some setups? I thought there was an RFC that mandated that the order of recor

Re: Does AI_ADDRCONFIG really work?

2005-04-19 Thread Mauro Tortonesi
rom 2003 seems to question the practical usefulness of > >> AI_ADDRCONFIG: > >> > >> http://dict.regex.info/ipv6/v6ops/2003-10.mail/0146.html > > > > i agree with itojun when he says that AI_ADDRCONFIG semantics is too > > vague. > > He

Re: Does AI_ADDRCONFIG really work?

2005-04-19 Thread Hrvoje Niksic
scussion from 2003 seems to question the practical usefulness of >> AI_ADDRCONFIG: >> >> http://dict.regex.info/ipv6/v6ops/2003-10.mail/0146.html > > i agree with itojun when he says that AI_ADDRCONFIG semantics is too > vague. He does make a good point. But, from an

Re: Does AI_ADDRCONFIG really work?

2005-04-19 Thread Mauro Tortonesi
ting to www.deepspace6.net|2001:1418:13:3::1|:80... failed: No route > to host. Connecting to www.deepspace6.net|192.167.219.83|:80... connected. > HTTP request sent, awaiting response... 200 OK > ... > > Why does getaddrinfo return AAAA records, when Wget specifies > AI_ADDRCONFIG?

Does AI_ADDRCONFIG really work?

2005-04-17 Thread Hrvoje Niksic
Connecting to www.deepspace6.net|192.167.219.83|:80... connected. HTTP request sent, awaiting response... 200 OK ... Why does getaddrinfo return records, when Wget specifies AI_ADDRCONFIG? It is not a problem in practice, as Wget correctly handles inability to connect to the first address, but seeing

Re: AI_ADDRCONFIG

2003-11-12 Thread Hrvoje Niksic
they can be reverted with --no-inet4-only. So in theory, the user could use --no-inet4 to undo the problem. However, I agree that this is still suboptimal. So let's add the socket creation check in main(). The check will only occur on systems *with* IPv6 in libc, but *without* AI_ADDRCONFIG.

Re: AI_ADDRCONFIG

2003-11-12 Thread Mauro Tortonesi
On Wed, 12 Nov 2003, Hrvoje Niksic wrote: > Mauro Tortonesi <[EMAIL PROTECTED]> writes: > > > perhaps we can perform a check like this in main: if AI_ADDRCONFIG > > is not supported AND ipv6 is not supported (e.g. creation of > > PF_INET6 sockets fails or we do

Re: AI_ADDRCONFIG

2003-11-12 Thread Hrvoje Niksic
Mauro Tortonesi <[EMAIL PROTECTED]> writes: > perhaps we can perform a check like this in main: if AI_ADDRCONFIG > is not supported AND ipv6 is not supported (e.g. creation of > PF_INET6 sockets fails or we don't have a global ipv6 address > configured on one of the i

Re: AI_ADDRCONFIG

2003-11-12 Thread Mauro Tortonesi
On Wed, 12 Nov 2003, Hrvoje Niksic wrote: > Mauro Tortonesi <[EMAIL PROTECTED]> writes: > > >> I suppose I can work around the problem by specifying `inet4_only=yes' > >> in .wgetrc... > >> > >> Better yet, maybe we should make -4 the default

Re: AI_ADDRCONFIG

2003-11-12 Thread Hrvoje Niksic
Mauro Tortonesi <[EMAIL PROTECTED]> writes: >> I suppose I can work around the problem by specifying `inet4_only=yes' >> in .wgetrc... >> >> Better yet, maybe we should make -4 the default on machines that don't >> support AI_ADDRCONFIG and on which c

Re: AI_ADDRCONFIG

2003-11-12 Thread Hrvoje Niksic
Mauro Tortonesi <[EMAIL PROTECTED]> writes: > On Wed, 12 Nov 2003, Hrvoje Niksic wrote: >> "Mauro Tortonesi" <[EMAIL PROTECTED]> writes: >> >> >> Wget works well, but it looks ugly because my machine is not >> >> configured for IPv6.

Re: AI_ADDRCONFIG

2003-11-12 Thread Mauro Tortonesi
On Wed, 12 Nov 2003, [iso-8859-2] Dra¾en Kaèar wrote: > Hrvoje Niksic wrote: > > > According to OpenGroup's web site, AI_ADDRCONFIG flag should be of use > > here. Should I be worried that the getaddrinfo man page on my (RHL 9) > > system doesn't mention

Re: AI_ADDRCONFIG

2003-11-12 Thread Dražen Kačar
Hrvoje Niksic wrote: > According to OpenGroup's web site, AI_ADDRCONFIG flag should be of use > here. Should I be worried that the getaddrinfo man page on my (RHL 9) > system doesn't mention AI_ADDRCONFIG? Yes. The end of OpenGroup's man page says: IEEE Std 1003

Re: AI_ADDRCONFIG

2003-11-12 Thread Mauro Tortonesi
On Wed, 12 Nov 2003, Hrvoje Niksic wrote: > "Mauro Tortonesi" <[EMAIL PROTECTED]> writes: > > >> Wget works well, but it looks ugly because my machine is not > >> configured for IPv6. > >> > >> According to OpenGroup's web site, AI_A

AI_ADDRCONFIG

2003-11-11 Thread Hrvoje Niksic
cting to ftp.deepspace6.net|192.167.215.13|:21... connected. [...] Wget works well, but it looks ugly because my machine is not configured for IPv6. According to OpenGroup's web site, AI_ADDRCONFIG flag should be of use here. Should I be worried that the getaddrinfo man page on my (RHL 9) s