Date: Sun, 26 Feb 2006 09:45:34 +0900 From: Hajimu UMEMOTO <ume@freebsd.org> To: Rostislav Krasny <rosti.bsd@gmail.com> Cc: freebsd-stable@freebsd.org, freebsd-stable-local@be-well.ilk.org, yar@comp.chem.msu.su, dwmalone@maths.tcd.ie, des@des.no, mak@ll.mit.edu, MH@kernel32.de Subject: Re: SSH login takes very long time...sometimes Message-ID: <ygehd6ndk29.wl%ume@mahoroba.org> In-Reply-To: <20060226014630.cc0b04ab.rosti.bsd@gmail.com> References: <20060218012029.e146e2ff.rosti.bsd@gmail.com> <20060219104912.GB20500@comp.chem.msu.su> <20060219225701.0e3e244b.rosti.bsd@gmail.com> <20060221165959.GB77513@comp.chem.msu.su> <20060222024430.ad4b5c60.rosti.bsd@gmail.com> <yge1wxvz5ha.wl%ume@mahoroba.org> <20060223235727.33cddb13.rosti.bsd@gmail.com> <ygefym98o7i.wl%ume@mahoroba.org> <20060224155153.f7da1a52.rosti.bsd@gmail.com> <ygewtfkelbu.wl%ume@mahoroba.org> <20060224174007.GF36227@comp.chem.msu.su> <20060225024246.d6284719.rosti.bsd@gmail.com> <ygeslq7ew25.wl%ume@mahoroba.org> <20060225164648.a4eed65c.rosti.bsd@gmail.com> <ygek6bje6h3.wl%ume@mahoroba.org> <20060226014630.cc0b04ab.rosti.bsd@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, >>>>> On Sun, 26 Feb 2006 01:46:30 +0200 >>>>> Rostislav Krasny <rosti.bsd@gmail.com> said: rosti.bsd> As far as I understand the code of selecthost() it walks through linked rosti.bsd> lists of known virtual hosts and their addresses and compares the rosti.bsd> addresses to a local address of connected socket. This way it tries to rosti.bsd> find - configuration of what virtual host should be used. There is an rosti.bsd> additional comparison that seems like a workaround for misconfigured rosti.bsd> virtual host that can be resolved only to IPv4 address and should be rosti.bsd> used on IPv4-mapped IPv6 address. If virtual hosts are properly rosti.bsd> configured that hack is not needed, IMHO. If you nuke this workaround from both selecthost() and my patch, you need to specify a native IPv4 address and/or an IPv4-mapped IPv6 address into ftphosts appropriately. It will confuse users. So, it is requierd. rosti.bsd> Anyway selecthost() is called with local socket name and it checks a rosti.bsd> local address, while his_addr.su_sin6.sin6_addr is a remote address. rosti.bsd> Local and remote hosts have same address families but not same rosti.bsd> addresses. The his_addr is referred to determine just an address family, here. When a remote address is an IPv4-mapped IPv6 address, a local address is as well. So, it should be okay. Sincerely, -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ygehd6ndk29.wl%ume>