svn commit: r267874 - stable/10/lib/libc/net
Hajimu UMEMOTO
ume at FreeBSD.org
Thu Jun 26 12:18:00 UTC 2014
Hi,
>>>>> On Wed, 25 Jun 2014 21:59:40 +0400
>>>>> "Alexander V. Chernikov" <melifaro at FreeBSD.org> said:
melifaro> Well, two socket() calls has some predictable cost, but getaddrinfo()
melifaro> can be quite slow for system with many interfaces. It would be better to
melifaro> introduce some kernel sysctls to report IPv4/IPv6 status...
Yes, it should be better having some sysctls as you say.
melifaro> It looks like style(9) needs to be altered, too..
melifaro> This is not correct. RFC 3493 talks about "loopback address" (and
melifaro> specifies explicit IN6_IS_ADDR_LOOPBACK macro to test in IPv6 case) and
melifaro> not about loopback interface.
Yes, but the spec is still unclear about handling of link-local
address especially on loopback interface. We have to exclude
fe80::1%lo0 to make addrconfig() functional.
I've committed the change: r267912.
Sincerely,
--
Hajimu UMEMOTO
ume at mahoroba.org ume@{,jp.}FreeBSD.org
http://www.mahoroba.org/~ume/
More information about the svn-src-all
mailing list