David Meggy wrote:
I didn't have the rndis.c debug on with the debug parameter turned on
I also had another login open running tcpdump -i usb0, but it showed nothing happening
here is a dump Using /lib/modules/2.4.25-vrs2.rndis/kernel/drivers/usb/gadget/n9604.o ~ # modprobe g_ether rndis_debug=1 && ifconfig usb0 192.168.4.2
Did you make sure to set both ends of the link up in compatible ways ... like being the only two hosts on 192.168.4.* and with netmask 255.255.255.0? (Or something similar, not necessarily using a /8 subnet.)
As a rule, when I hook up a link and it doesn't behave, that's exactly what's wrong. I've not yet gotten around to making ZCIP automate everything.
Using /lib/modules/2.4.25-vrs2.rndis/kernel/drivers/usb/gadget/g_ether.o usb0: Ethernet Gadget, version: St Patrick's Day 2004 usb0: using n9604_udc, OUT ep2out IN ep1in STATUS ep3in usb0: MAC b2:c2:b4:a9:82:cf usb0: CDC host enet 4AAC30798948 rndis_register: configNr = 0 rndis_set_param_dev: rndis_set_param_vendor: rndis_set_param_medium: usb0: RNDIS ready ~ # Dave: n9604_ep_enable ep 1 Dave: n9604_ep_enable ep 2 Dave: n9604_ep_enable ep 3 rndis_set_param_medium: usb0: full speed config #2: Ethernet Gadget, using RNDIS rndis_msg_parser: REMOTE_NDIS_INITIALIZE_MSG
OK, so far so good. Looks like you're talking RNDIS to the host, no disagreements there any more.
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010101
gen_ndis_query_resp: OID_GEN_SUPPORTED_LIST
rndis_msg_parser: REMOTE_NDIS_SET_MSG
rndis_set_response: Length: 72
rndis_set_response: Offset: 20
rndis_set_response: InfoBuffer: 1c 00 00 00 02 00 00 00 30 00 00 00 18 00 00 00 4e 00 65 00 74 00 77 00 6f 00 72 00 6b 00 41 00 64 00 64 00 72 00 65 00 73 00 73 00 31 00 32 00 33 00 34 00 35 00 36 00 37 00 38 00 39 00 41 00 42 00 43 00 02 01 02 00 gen_ndis_set_resp: OID_GEN_RNDIS_CONFIG_PARAMETER
NetworkAddress
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010116
gen_ndis_query_resp: OID_GEN_VENDOR_DRIVER_VERSION
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010106
gen_ndis_query_resp: OID_GEN_MAXIMUM_FRAME_SIZE
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010113
gen_ndis_query_resp: OID_GEN_MAC_OPTIONS
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 01010104
gen_ndis_query_resp: OID_802_3_MAXIMUM_LIST_SIZE
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 01010102
gen_ndis_query_resp: OID_802_3_CURRENT_ADDRESS
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010202
gen_ndis_query_resp: OID_GEN_PHYSICAL_MEDIUM
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010106
gen_ndis_query_resp: OID_GEN_MAXIMUM_FRAME_SIZE
device usb0 entered promiscuous mode
Do you know why it entered promiscuous mode? Is that something you did ... like start "tcpdump"?
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010111
gen_ndis_query_resp: OID_GEN_MAXIMUM_TOTAL_SIZE
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010113
gen_ndis_query_resp: OID_GEN_MAC_OPTIONS
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 01010102
gen_ndis_query_resp: OID_802_3_CURRENT_ADDRESS
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010202
gen_ndis_query_resp: OID_GEN_PHYSICAL_MEDIUM
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 01010102
gen_ndis_query_resp: OID_802_3_CURRENT_ADDRESS
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010106
gen_ndis_query_resp: OID_GEN_MAXIMUM_FRAME_SIZE
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010107
gen_ndis_query_resp: OID_GEN_LINK_SPEED
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010107
gen_ndis_query_resp: OID_GEN_LINK_SPEED
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010114
gen_ndis_query_resp: OID_GEN_MEDIA_CONNECT_STATUS
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010113
gen_ndis_query_resp: OID_GEN_MAC_OPTIONS
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00020101
gen_ndis_query_resp: OID_GEN_XMIT_OK
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00020102
gen_ndis_query_resp: OID_GEN_RCV_OK
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00020103
gen_ndis_query_resp: OID_GEN_XMIT_ERROR
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00020104
gen_ndis_query_resp: OID_GEN_RCV_ERROR
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00020208
gen_ndis_query_resp: OID_GEN_DIRECTED_FRAMES_RCV
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00020201
gen_ndis_query_resp: OID_GEN_DIRECTED_BYTES_XMIT
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00020207
gen_ndis_query_resp: OID_GEN_DIRECTED_BYTES_RCV
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010202
gen_ndis_query_resp: OID_GEN_PHYSICAL_MEDIUM
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010202
gen_ndis_query_resp: OID_GEN_PHYSICAL_MEDIUM
rndis_msg_parser: REMOTE_NDIS_SET_MSG
rndis_set_response: Length: 4
rndis_set_response: Offset: 20
rndis_set_response: InfoBuffer: 68 4a 14 02 gen_ndis_set_resp: OID_GEN_CURRENT_PACKET_FILTER
OK, at this point the host expects to be able to talk to you. Packets _should_ flow just fine on the link. Which is just what they did for me, and I don't want to assume I was just lucky or anything ... :)
I don't know enough RNDIS to figure out whether any of this traffic reflects a confused host, but my initial impression is that RNDIS is just chatty.
- Dave
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010114
gen_ndis_query_resp: OID_GEN_MEDIA_CONNECT_STATUS
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010114
gen_ndis_query_resp: OID_GEN_MEDIA_CONNECT_STATUS
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 01010102
gen_ndis_query_resp: OID_802_3_CURRENT_ADDRESS
rndis_msg_parser: REMOTE_NDIS_SET_MSG
rndis_set_response: Length: 6
rndis_set_response: Offset: 20
rndis_set_response: InfoBuffer: 00 01 00 00 00 00 gen_ndis_set_resp: OID_802_3_MULTICAST_LIST
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 01010101
gen_ndis_query_resp: OID_802_3_PERMANENT_ADDRESS
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010114
gen_ndis_query_resp: OID_GEN_MEDIA_CONNECT_STATUS
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010107
gen_ndis_query_resp: OID_GEN_LINK_SPEED
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 0001010C
gen_ndis_query_resp: OID_GEN_VENDOR_ID
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010107
gen_ndis_query_resp: OID_GEN_LINK_SPEED
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010107
gen_ndis_query_resp: OID_GEN_LINK_SPEED
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010107
gen_ndis_query_resp: OID_GEN_LINK_SPEED
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010107
gen_ndis_query_resp: OID_GEN_LINK_SPEED
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010107
gen_ndis_query_resp: OID_GEN_LINK_SPEED
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010107
gen_ndis_query_resp: OID_GEN_LINK_SPEED
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010107
gen_ndis_query_resp: OID_GEN_LINK_SPEED
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010107
gen_ndis_query_resp: OID_GEN_LINK_SPEED
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010114
gen_ndis_query_resp: OID_GEN_MEDIA_CONNECT_STATUS
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010107
gen_ndis_query_resp: OID_GEN_LINK_SPEED
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00020101
gen_ndis_query_resp: OID_GEN_XMIT_OK
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010107
gen_ndis_query_resp: OID_GEN_LINK_SPEED
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00020102
gen_ndis_query_resp: OID_GEN_RCV_OK
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010107
gen_ndis_query_resp: OID_GEN_LINK_SPEED
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00020103
gen_ndis_query_resp: OID_GEN_XMIT_ERROR
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010114
gen_ndis_query_resp: OID_GEN_MEDIA_CONNECT_STATUS
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00020104
gen_ndis_query_resp: OID_GEN_RCV_ERROR
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00020101
gen_ndis_query_resp: OID_GEN_XMIT_OK
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00020208
gen_ndis_query_resp: OID_GEN_DIRECTED_FRAMES_RCV
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00020102
gen_ndis_query_resp: OID_GEN_RCV_OK
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00020201
gen_ndis_query_resp: OID_GEN_DIRECTED_BYTES_XMIT
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00020103
gen_ndis_query_resp: OID_GEN_XMIT_ERROR
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00020207
gen_ndis_query_resp: OID_GEN_DIRECTED_BYTES_RCV
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00020104
gen_ndis_query_resp: OID_GEN_RCV_ERROR
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010202
gen_ndis_query_resp: OID_GEN_PHYSICAL_MEDIUM
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00020208
gen_ndis_query_resp: OID_GEN_DIRECTED_FRAMES_RCV
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010107
gen_ndis_query_resp: OID_GEN_LINK_SPEED
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00020201
gen_ndis_query_resp: OID_GEN_DIRECTED_BYTES_XMIT
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010202
gen_ndis_query_resp: OID_GEN_PHYSICAL_MEDIUM
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00020207
gen_ndis_query_resp: OID_GEN_DIRECTED_BYTES_RCV
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010202
gen_ndis_query_resp: OID_GEN_PHYSICAL_MEDIUM
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010107
gen_ndis_query_resp: OID_GEN_LINK_SPEED
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010107
gen_ndis_query_resp: OID_GEN_LINK_SPEED
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010114
gen_ndis_query_resp: OID_GEN_MEDIA_CONNECT_STATUS
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00020101
gen_ndis_query_resp: OID_GEN_XMIT_OK
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00020102
gen_ndis_query_resp: OID_GEN_RCV_OK
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00020103
gen_ndis_query_resp: OID_GEN_XMIT_ERROR
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00020104
gen_ndis_query_resp: OID_GEN_RCV_ERROR
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00020208
gen_ndis_query_resp: OID_GEN_DIRECTED_FRAMES_RCV
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00020201
gen_ndis_query_resp: OID_GEN_DIRECTED_BYTES_XMIT
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00020207
gen_ndis_query_resp: OID_GEN_DIRECTED_BYTES_RCV
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010202
gen_ndis_query_resp: OID_GEN_PHYSICAL_MEDIUM
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010107
gen_ndis_query_resp: OID_GEN_LINK_SPEED
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010107
gen_ndis_query_resp: OID_GEN_LINK_SPEED
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010114
gen_ndis_query_resp: OID_GEN_MEDIA_CONNECT_STATUS
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00020101
gen_ndis_query_resp: OID_GEN_XMIT_OK
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00020102
gen_ndis_query_resp: OID_GEN_RCV_OK
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00020103
gen_ndis_query_resp: OID_GEN_XMIT_ERROR
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00020104
gen_ndis_query_resp: OID_GEN_RCV_ERROR
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00020208
gen_ndis_query_resp: OID_GEN_DIRECTED_FRAMES_RCV
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00020201
gen_ndis_query_resp: OID_GEN_DIRECTED_BYTES_XMIT
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00020207
gen_ndis_query_resp: OID_GEN_DIRECTED_BYTES_RCV
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010202
gen_ndis_query_resp: OID_GEN_PHYSICAL_MEDIUM
rndis_msg_parser: REMOTE_NDIS_QUERY_MSG
rndis_query_response: OID = 00010107
gen_ndis_query_resp: OID_GEN_LINK_SPEED
David
------------------------------------------------------- This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek For a limited time only, get FREE Ground shipping on all orders of $35 or more. Hurry up and shop folks, this offer expires April 30th! http://www.thinkgeek.com/freeshipping/?cpg=12297 _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel