From owner-freebsd-current Fri Apr 16 9: 0:22 1999 Delivered-To: freebsd-current@freebsd.org Received: from awfulhak.org (awfulhak.force9.co.uk [195.166.136.63]) by hub.freebsd.org (Postfix) with ESMTP id B8691158E8 for ; Fri, 16 Apr 1999 09:00:13 -0700 (PDT) (envelope-from brian@lan.awfulhak.org) Received: from keep.lan.Awfulhak.org (keep.lan.Awfulhak.org [172.16.0.8]) by awfulhak.org (8.9.2/8.9.2) with ESMTP id QAA00732; Fri, 16 Apr 1999 16:57:37 +0100 (BST) (envelope-from brian@lan.awfulhak.org) Received: from keep.lan.Awfulhak.org (localhost [127.0.0.1]) by keep.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id QAA07764; Fri, 16 Apr 1999 16:53:13 +0100 (BST) (envelope-from brian@keep.lan.Awfulhak.org) Message-Id: <199904161553.QAA07764@keep.lan.Awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: Luoqi Chen Cc: camel@avias.com, current@FreeBSD.ORG Subject: Re: some news about ftp hangs In-reply-to: Your message of "Fri, 16 Apr 1999 10:32:19 EDT." <199904161432.KAA16773@lor.watermarkgroup.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 16 Apr 1999 16:53:11 +0100 From: Brian Somers Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > trying different configurations i have encountered the following > > > > 1. ftp in passive mode (pftp or ftp with -p options) DOES NOT hang; > > 2. ncftp3 from ports DOES NOT hang; > > 3. netscape communicator 4 DOES NOT hang. > > > > so it seems that the problem is in native FreeBSD's ftp or a library > > (libedit.so.2, libtermcap.so.2 or libc.so.3). > > > I suspect libalias' ftp PORT command handling. Well, that hasn't changed for some time. It's not perfect in that it can't detect PORT commands that span more than one packet fragment, but this (to my knowledge) won't happen in real life as `ftp' uses the PORT command in the middle of a conversation - surrounded by expected responses from the peer, and thus making the whole PORT thing go off in one piece. > > -- > > > > sincerely, > > ilya naumov (at work) > > > Here's async log output from alias enabled ppp, while ftp was retransmitting > the PORT command packet: > > Async: 7e 3d c0 00 00 9d 21 45 00 00 38 13 42 00 00 ff > ^^ > Async: 01 e3 a7 cf ca 49 aa d0 17 db 4e 03 03 a2 f8 00 > Async: 00 00 00 45 00 00 39 a4 4e 00 00 2e 11 79 35 d0 > ^^ > Async: 17 db 4e cf ca 49 aa 04 00 00 35 00 25 00 00 e3 > Async: 69 7e > > If looked like somehow the first ip frame was overwritten by a second ip > frame... Hmm, I don't see any PORT command in there ;-/ > -lq -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message