Date: Sun, 22 Jul 2001 13:05:34 +0900 (JST) From: Hajimu UMEMOTO <ume@mahoroba.org> To: brian@Awfulhak.org Cc: brian@FreeBSD.org, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libutil realhostname.c Message-ID: <20010722.130534.28837728.ume@mahoroba.org> In-Reply-To: <200107212222.f6LMMtg79753@hak.lan.Awfulhak.org> References: <ume@mahoroba.org> <200107212222.f6LMMtg79753@hak.lan.Awfulhak.org>
index | next in thread | previous in thread | raw e-mail
Hi,
>>>>> On Sat, 21 Jul 2001 23:22:55 +0100
>>>>> Brian Somers <brian@Awfulhak.org> said:
brian> Do you mean ::ffff:a.b.c.d type addresses ? I'm probably
Yes.
brian> mis-understanding things. Can you give me an example of how such a
brian> connection is supposed to work ? I mean... if ::ffff:* addresses
brian> aren't supposed to understand IPv6, why are they a concern ? I'm
brian> clearly missing something.
In default settings of FreeBSD, IPv4 mapped IPv6 address is enabled.
And, most of IPv6 support codes in basic part of FreeBSD concern about
it. For example, you can specify `tcp46' in inetd.conf to use it.
Make sure to don't specify `tcp' for the same service. You can try it
with sshd too. For sshd, you can specify `ListenAddress ::' in
sshd_config.
brian> My change was done because the normal IPv6 scenario doesn't work at
brian> the moment (where I have gw.lan.Awfulhak.org resolving an A request
brian> to 172.16.0.1 and an AAAA request to fec0::1). When I connect from
brian> fec0::1 it simply fails to resolve using AF_UNSPEC and dumps fec0::1
brian> in utmp :(
Umm, it's a site-local address. Since site-local address is a scoped
address, we may need some other concern to play with it. Does this
work for you?
Index: lib/libutil/realhostname.c
diff -u lib/libutil/realhostname.c.orig lib/libutil/realhostname.c
--- lib/libutil/realhostname.c.orig Sun Jul 22 04:47:07 2001
+++ lib/libutil/realhostname.c Sun Jul 22 13:01:24 2001
@@ -96,7 +96,8 @@
result = HOSTNAME_INVALIDADDR;
- error = getnameinfo(addr, addrlen, buf, sizeof(buf), NULL, 0, 0);
+ error = getnameinfo(addr, addrlen, buf, sizeof(buf), NULL, 0,
+ NI_WITHSCOPEID);
if (error == 0) {
struct addrinfo hints, *res, *ores;
struct sockaddr *sa;
--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume@mahoroba.org ume@bisd.hitachi.co.jp ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010722.130534.28837728.ume>
