From owner-freebsd-net@FreeBSD.ORG Tue Apr 24 23:19:39 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D763116A404 for ; Tue, 24 Apr 2007 23:19:39 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.freebsd.org (Postfix) with ESMTP id 0DCAF13C46A for ; Tue, 24 Apr 2007 23:19:38 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.4/8.13.4) with ESMTP id l3ONJXoC005147; Wed, 25 Apr 2007 03:19:33 +0400 (MSD) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.4/8.13.4/Submit) id l3ONJW12005145; Wed, 25 Apr 2007 03:19:32 +0400 (MSD) (envelope-from yar) Date: Wed, 25 Apr 2007 03:19:31 +0400 From: Yar Tikhiy To: Peter Jeremy Message-ID: <20070424231930.GD31094@comp.chem.msu.su> References: <20070419093847.GC60301@comp.chem.msu.su> <1176976273.4177.17.camel@hiro.auspc.com.au> <20070419113842.GE60301@comp.chem.msu.su> <1176990600.4177.26.camel@hiro.auspc.com.au> <20070419175331.GA5999@comp.chem.msu.su> <1177077805.4063.7.camel@hiro.auspc.com.au> <20070420233619.GC52136@comp.chem.msu.su> <1177287886.4075.15.camel@hiro.auspc.com.au> <20070423145429.GF66604@comp.chem.msu.su> <20070424213706.GA1736@turion.vk2pj.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070424213706.GA1736@turion.vk2pj.dyndns.org> User-Agent: Mutt/1.5.9i Cc: freebsd-net@freebsd.org, Alan Garfield Subject: Re: Corrupt packets in Jnet (Was: Re: rtentry and rtrequest) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Apr 2007 23:19:39 -0000 On Wed, Apr 25, 2007 at 07:37:06AM +1000, Peter Jeremy wrote: > On 2007-Apr-23 18:54:30 +0400, Yar Tikhiy wrote: > >Perhaps the bug is triggered when the outgoing packet consists of > >multiple mbufs. > > Given that we are effectivly dealing with a shared memory block, how > does the SP now when the server has finished writing and vice versa? This is a pretty good question! I don't remember seeing any synchronization with the SP in jnet_start() so it cannot be sure the SP has finished reading the previous packet. > Is jnet's handling of multiple mbufs making the SP think there are > multiple packets? It shouldn't. The data from all mbufs in the chain are just written to the buffer to form the whole packet in it. > >I'd also test if the ssh from SP can work OK with a FreeBSD host > >(the same FreeBSD version as on the platform side would be the best) > >via the external Ethernet. > > It definitely can. I haven't used anything else to talk to my SP. I meant using ssh(1) on the SP and sshd(8) on an external FreeBSD host just to be 100% sure that combination works, too. -- Yar