Subject: CVS commit: basesrc
To: None <source-changes@netbsd.org>
From: Jun-ichiro itojun Hagino <itojun@netbsd.org>
List: source-changes
Date: 07/14/1999 15:10:04
Module Name:	basesrc
Committed By:	itojun
Date:		Wed Jul 14 22:10:03 UTC 1999

Modified Files:
	basesrc/lib/libc/net: getaddrinfo.c

Log Message:
- do not make query for AFs that are not supported by kernel.
  i.e. do not make query for IPv6 addresses, when running on non-IPv6 kernel,
  or, do not query for IPv4 address on IPv6-only kernel :-)

  This kind of behavior is not very well documented in RFC2553.  This
  may violate the spec.

- on EAI_AGAIN, only retry 3 times (3 is a magic number).  Previous code
  made retries forever.  This solves situation where name server is wrongly
  configured and nameserver:53 returns icmp port unreach.

The only proper fix for all getaddrinfo() related twists would be to
implement getipnodebyname() and get rid of wacky get_addr().
We need to contribute bind8 development for this.


To generate a diff of this commit:
cvs rdiff -r1.8 -r1.9 basesrc/lib/libc/net/getaddrinfo.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.