Hi, I have a gumstix with 2.6.11 on it, under which usbnet (pxa2xx_udc and g_ether) work the way I would expect with my Windows XP box.
I'm able to setup usbnet to use DHCP and everything works perfectly (I have usbnet and my ethernet bridged under XP). I'm now trying to get the same setup working under 2.6.18. I can succesfully get the serial gadget to work, and I can get the ethernet gadget to work if I use static IP addresses, but I can't seem to get DHCP to work (DHCP works fine on my ethernet connection, just not on my usb connection). I put a few prints in the driver, and I've determined that the DHCPDISCOVER broadcast is being filtered by eth_start_xmit in driver/usb/gadget/ether.c I turned on debugging in rndis.c and I saw this go by: gen_ndis_set_resp: OID_GEN_CURRENT_PACKET_FILTER 00000002 and this seems to be the filter that eth_start_xmit is using. Looking at the definitions (in include/linux/usb/cdc.h) I see the following: #define USB_CDC_PACKET_TYPE_PROMISCUOUS (1 << 0) #define USB_CDC_PACKET_TYPE_ALL_MULTICAST (1 << 1) /* no filter */ #define USB_CDC_PACKET_TYPE_DIRECTED (1 << 2) #define USB_CDC_PACKET_TYPE_BROADCAST (1 << 3) #define USB_CDC_PACKET_TYPE_MULTICAST (1 << 4) /* filtered */ The value of 2 seems to imply that no filtering should be done. -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users