/dev/net/usbeth/top

From WiiBrew
< /dev‎ | net‎ | usbeth
Jump to navigation Jump to search

This is the interface to the Nintendo USB Ethernet Adapter. It presents an interface similar (identical?) to /dev/net/wd/top.

Ioctl Inputs Outputs Function
0x20001 1 (0x28 bytes, a struct iobuffer) 0 Transmit packet
0x20002 0 0 net_dev_up
0x20003 0 0 net_dev_down
0x20004 1 (0x20 bytes?)(u32 wtf u32 multicastaddresscount (max 4) ) 0 seems to always fail??? something with multicast address may usbEthConfigMulticast
0x20005 1 (6 bytes) 0 set MAC address
0x20006 0 1 (6 bytes) get MAC address
0x20007 ? ? ?
0x20008 0 1 (0x24) ?
0x20009 1(0xC)(struct u32 supportfield,u32 advertisefeature, u16 speed (Mbps),u8 duplex(0 is full-duplex,1 is half-duplex),u8 wtf3 (must be 0)) 0 select
0x20010 0 1 (0xC) get the current select