From owner-freebsd-stable@FreeBSD.ORG Sat Feb 25 16:42:13 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB08216A420 for ; Sat, 25 Feb 2006 16:42:13 +0000 (GMT) (envelope-from ume@mahoroba.org) Received: from ameno.mahoroba.org (gw4.mahoroba.org [218.45.22.175]) by mx1.FreeBSD.org (Postfix) with ESMTP id DDE1243D4C for ; Sat, 25 Feb 2006 16:42:12 +0000 (GMT) (envelope-from ume@mahoroba.org) Received: from kasuga.mahoroba.org (IDENT:4jA3C8/zctqQ8Ad+5xvrZRZ8eqLppbKHceV+LovR6VBYAj42YqdJwxUSctiLQG1r@kasuga-iwi.mahoroba.org [IPv6:3ffe:501:185b:8010:212:f0ff:fe52:6ac]) (user=ume mech=CRAM-MD5 bits=0) by ameno.mahoroba.org (8.13.4/8.13.4) with ESMTP/inet6 id k1PGfS7S087659 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 26 Feb 2006 01:41:32 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Sun, 26 Feb 2006 01:41:28 +0900 Message-ID: From: Hajimu UMEMOTO To: Rostislav Krasny 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> <20060223235727.33cddb13.rosti.bsd@gmail.com> <20060224155153.f7da1a52.rosti.bsd@gmail.com> <20060224174007.GF36227@comp.chem.msu.su> <20060225024246.d6284719.rosti.bsd@gmail.com> <20060225164648.a4eed65c.rosti.bsd@gmail.com> User-Agent: xcite1.38> Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.0.50 (i386-unknown-freebsd6.1) MULE/5.0 (SAKAKI) X-Operating-System: FreeBSD 6.1-PRERELEASE X-PGP-Key: http://www.imasy.or.jp/~ume/publickey.asc X-PGP-Fingerprint: 1F00 0B9E 2164 70FC 6DC5 BF5F 04E9 F086 BF90 71FE Organization: Internet Mutual Aid Society, YOKOHAMA MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.1.3 (ameno.mahoroba.org [IPv6:3ffe:501:185b:8010::1]); Sun, 26 Feb 2006 01:41:39 +0900 (JST) X-Virus-Scanned: by amavisd-new X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on ameno.mahoroba.org 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 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Feb 2006 16:42:14 -0000 Hi, >>>>> On Sat, 25 Feb 2006 16:46:48 +0200 >>>>> Rostislav Krasny 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/