Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Feb 2006 01:41:28 +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:  <ygek6bje6h3.wl%ume@mahoroba.org>
In-Reply-To: <20060225164648.a4eed65c.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>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

>>>>> On Sat, 25 Feb 2006 16:46:48 +0200
>>>>> Rostislav Krasny <rosti.bsd@gmail.com> said:

rosti> "family = his_addr.su_family;" is really a good idea. But what is the
rosti> reason to check if IPv6 address of a remote client is IPv4 mapped and
rosti> assign AF_INET to a 'family' when that's true? The inithosts() doesn't
rosti> lookup for that address but for the server's hostname and optionally
rosti> virtual server's hostnames from /etc/ftphosts. I think it's unnecessary
rosti> and can even produce problems. IMHO "inithosts(family);" could be
rosti> called right after the "family = his_addr.su_family;" line.

No, when a local address of a connection is an IPv4-mapped IPv6
address, selecthost() does test it as a native IPv4 address.  So, we
need to lookup hostnames as an IPv4 in inithosts().  Please refer
selecthost() for detail.

> For ftp.c.diff, how about considering adding new option for timeout?

rosti> That was what I thought about when wrote my previous email. What name
rosti> could be good for that option? Is "-c seconds" (ftp Command reply
rosti> timeout in seconds) a good one?

I have no idea for now, but ftp(1) is a contrib software from NetBSD.
So, we need to discuss with the author of lukemftp.

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?ygek6bje6h3.wl%ume>