From owner-freebsd-net@freebsd.org Tue Oct 25 05:09:12 2016 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AA54AC20EB9 for ; Tue, 25 Oct 2016 05:09:12 +0000 (UTC) (envelope-from david@aogsquid.ucsd.edu) Received: from fed1rmfepo101.cox.net (fed1rmfepo101.cox.net [68.230.241.143]) by mx1.freebsd.org (Postfix) with ESMTP id 876343C9 for ; Tue, 25 Oct 2016 05:09:12 +0000 (UTC) (envelope-from david@aogsquid.ucsd.edu) Received: from fed1rmimpo305.cox.net ([68.230.241.173]) by fed1rmfepo101.cox.net (InterMail vM.8.01.05.28 201-2260-151-171-20160122) with ESMTP id <20161025050905.DKQL2641.fed1rmfepo101.cox.net@fed1rmimpo305.cox.net> for ; Tue, 25 Oct 2016 01:09:05 -0400 Received: from [192.168.25.200] ([174.65.112.147]) by fed1rmimpo305.cox.net with cox id zh8m1t00H3ArtDJ01h8uPG; Tue, 25 Oct 2016 01:08:54 -0400 X-CT-Class: Clean X-CT-Score: 0.00 X-CT-RefID: str=0001.0A090201.580EE8E6.0073, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CT-Spam: 0 X-Authority-Analysis: v=2.1 cv=dLMG4Ltb c=1 sm=1 tr=0 a=kEcOQgfb31AP6aoOu6fJYg==:117 a=kEcOQgfb31AP6aoOu6fJYg==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=N659UExz7-8A:10 a=G9mKJWSYaxJC26YW2YAA:9 a=pILNOxqGKmIA:10 X-CM-Score: 0.00 Authentication-Results: cox.net; auth=pass (PLAIN) smtp.auth=dhorwitt@cox.net Subject: Re: Adding RTL8153 support to rue(4) (actually cdce(4)) USB to Ethernet driver [SOLVED] To: freebsd-net@freebsd.org References: <5807B630.1060806@aogsquid.ucsd.edu> <3622755d-b0cd-60bf-0f81-469d06e65595@selasky.org> <58092C6D.8080105@aogsquid.ucsd.edu> <30de3b9c-98c4-0bbc-dce2-eddc52e98b10@selasky.org> From: David Horwitt Message-ID: <580EE8DE.2060005@aogsquid.ucsd.edu> Date: Mon, 24 Oct 2016 22:08:46 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: <30de3b9c-98c4-0bbc-dce2-eddc52e98b10@selasky.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 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, 25 Oct 2016 05:09:12 -0000 ... or, at least, worked around. I added a SetEthernetPacketFilter request with wValue PACKET_TYPE_PROMISCUOUS in cdce_init() (right before the cdce_start() call) and joy ensued. Note that (PACKET_TYPE_DIRECTED | PACKET_TYPE_BROADCAST) did _not_ work, but setting the promiscuous bit was the key. HPS: thanks again for your help. Cheers, DH On 10/21/16 00:18, Hans Petter Selasky wrote: > On 10/20/16 22:43, David Horwitt wrote: >> On 10/19/16 11:25, Hans Petter Selasky wrote: >> Do you mean that I need to implement a small driver at VID:PID (0bda:8153 for this device) using cfg 0 to initialize the >> built-in MII (using the Linux RTL8152/8153 driver as a model), and then switch to cfg 1 to use the CDC device for actual >> operation? >> > > No, I think the cfg 1 with CDC has the additional interface. Look at what the Linux driver does or get another ethernet > adapter :-) > > --HPS >