Date: Thu, 27 Jan 2005 18:45:51 +0100 From: Hans Petter Selasky <hselasky@c2i.net> To: 1801 <1801@083.pfr.ru> Cc: freebsd-usb@freebsd.org Subject: Re: problem with udbp and netgraph in the usb LAN Message-ID: <20050127184551.B818@curly.tele2.no> In-Reply-To: <opsk81godkh99c6v@w1801.opfr>; from 1801@083.pfr.ru on Thu, Jan 27, 2005 at 09:54:14AM %2B0300 References: <opsk81godkh99c6v@w1801.opfr>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050127184551.B818>