Date: Tue, 24 Jul 2001 01:05:07 +0100 From: Brian Somers <brian@Awfulhak.org> To: Hajimu UMEMOTO <ume@FreeBSD.org> Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, brian@Awfulhak.org Subject: Re: cvs commit: src/lib/libutil realhostname.c Message-ID: <200107240005.f6O057g73473@hak.lan.Awfulhak.org> In-Reply-To: Message from Hajimu UMEMOTO <ume@FreeBSD.org> of "Mon, 23 Jul 2001 14:42:23 PDT." <200107232142.f6NLgN454028@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> ume 2001/07/23 14:42:22 PDT > > Modified files: > lib/libutil realhostname.c > Log: > Simplify IPv4 mapped IPv6 address handling. > > Reviewed by: brian > MFC after: 5 days > > Revision Changes Path > 1.13 +40 -67 src/lib/libutil/realhostname.c It seems my problem with the original code (which inspired version 1.12 of realhostname.c (breaking IPv4 mapped addresses)) was due to a dumb mistake on my part. I had IPv4-only entries for the machines that were having problems in /etc/hosts. When getaddrinfo() is passed an AF_INET6 hint, it tries harder to find the AAAA records, and found them in my DNS (perhaps this is a little peculiar). The original code works fine (using AF_UNSPEC) once I fix /etc/hosts. My apologies to ume, and my thanks for his patience. -- Brian <brian@freebsd-services.com> <brian@Awfulhak.org> http://www.freebsd-services.com/ <brian@[uk.]FreeBSD.org> Don't _EVER_ lose your sense of humour ! <brian@[uk.]OpenBSD.org> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200107240005.f6O057g73473>