Driver for the CDC ECM USB Ethernet control module


io-pkt-variant -d ecm ... &

where variant is one of v4, v4-hc, or v6-hc.

Runs on:



The internal buffer size for the AT command (default 2048).
Attach to a specific device on the USB bus with the given number.
Attach to a specific USB device address.
Ignore the USB removal callback; the user should handle device removal.
Connect to the specified USB stack. The default is /dev/usb.
Keep the driver loaded across device insertion and removal.
Note: When you use the pnp option, the DLL remains loaded and connected to the USB stack. Ethernet interfaces are created as devices are inserted. If devices are removed, the DLL is unloaded. It means the driver currently doesn't support being removed and inserted again.
The number of receive URBs; the default is 64.
The number of transmit URBs; the default is 64.
Be verbose. The output goes to slogger; invoke sloginfo to view it.
Wait num seconds for the USB stack (default 60 seconds).


The driver manages the CDC ECM USB Ethernet control module. This is a native io-pkt driver; its interface names are in the form ecmX, where X is an integer.

Launcher applications that get notifications of device insertions and removals can use the busnum and devnum options. These applications mount the DLL to target specific devices connected to the USB. When the device is removed, it is expected that the launcher will also unmount the interface associated with interface. For io-pkt* drivers, you can't use umount to unload the DLL, but you can use ifconfig's destroy command to unload DLL.

The driver provides an additional interface serecmX under /dev for AT commands. You can send AT command and receive response through this interface.

Some devices support hardware checksums, although some might do so in only one direction; to determine if your device does, type:

ifconfig ecmX

and look for the following in the list of supported options:

You can then use ifconfig to enable or disable whichever of these options your device supports.

Note: Native io-pkt and ported NetBSD drivers don't put entries into the /dev/io-net namespace, so a waitfor command for such an entry won't work properly in buildfiles or scripts. Use if_up -p instead; for example, instead of waitfor /dev/io-net/ecm0, use if_up -p ecm0.


Start the v4 TCP/IP variant of io-pkt using the driver:

io-pkt-v4-hc -d ecm verbose -ptcpip &
ifconfig ecm0 10.184

Unload the DLL:

ifconfig ecm0 down
ifconfig ecm0 destroy