From owner-freebsd-usb@FreeBSD.ORG Thu Jan 27 17:38:29 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 18C4C16A4CE for ; Thu, 27 Jan 2005 17:38:29 +0000 (GMT) Received: from mailfe06.swip.net (mailfe06.swip.net [212.247.154.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD3CB43D2F for ; Thu, 27 Jan 2005 17:38:27 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from [193.216.43.106] (HELO curly.tele2.no) by mailfe06.swip.net (CommuniGate Pro SMTP 4.2.7) with ESMTP id 276188475; Thu, 27 Jan 2005 18:38:26 +0100 Received: (from root@localhost) by curly.tele2.no (8.12.5/8.12.3) id j0RHjrZ3001031; Thu, 27 Jan 2005 18:45:53 +0100 (CET) (envelope-from hselasky@c2i.net) Date: Thu, 27 Jan 2005 18:45:51 +0100 From: Hans Petter Selasky To: 1801 <1801@083.pfr.ru> Message-ID: <20050127184551.B818@curly.tele2.no> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from 1801@083.pfr.ru on Thu, Jan 27, 2005 at 09:54:14AM +0300 cc: freebsd-usb@freebsd.org Subject: Re: problem with udbp and netgraph in the usb LAN X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jan 2005 17:38:29 -0000 On Thu, Jan 27, 2005 at 09:54:14AM +0300, 1801 wrote: > Hi, all > I have usb2usb link cable (no name)and try make usb network on two hosts > (FreeBSD 5.3). > I do everything as written in man 4 udbp: > kldload netgraph > kldload udbp > Result : > udbp0: Prolific Technology Inc. PL2302 Host-Host interface, rev 1.00/0.01, > addr2, iclass 255/0. > Then make: > ngctl mkpeer udbp0: iface data inet, ifconfig ng0 10.0.0.1 10.0.0.2 on > both hosts. > Ping from 10.0.0.1 to 10.0.0.2 disappear through 1 minutes. > How to make steady connection? > Thanks in advance, Yuri. What kind of USB controller do you have? Looking through the code I found this problem: If a transmitted packet has a length that is divisible by "MaxPacketLength" then udbp_in_transfer_cb() will not be called. In other words the transmission will stop. So when udbp is sending packets, the flag USBD_FORCE_SHORT_XFER must be set? -- HPS