cdce(4)

cdce4

Usb communication device class ethernet device

Usage

cdce* at uhub?

Overview

The cdce driver provides support for USB Host-to-Host (aka USB-to-USB) bridges based on the USB Communication Device Class (CDC) and Ethernet subclass, including the following:

  • Acer Labs USB 2.0 Data Link

  • Dell Wireless 5530

  • Dell Wireless 5540

  • FRITZ!Box Fon ata 1020

  • G.Mate YP3X00

  • Lenovo ThinkPad USB 3.0 Ethernet adapter (FRU 03X6903)

  • Motorola USBNET

  • NetChip EthernetGadget

  • Prolific PL-2501

  • Sony Ericsson K610i

  • Sony Ericsson F3705g

  • Yota LU156

  • ZTE MF831 LTE USB modem

  • ZTE MF920V portable LTE WiFi router

  • Zyxel P-971M

The USB bridge appears as a regular network interface on both sides, transporting Ethernet frames. USB 1.x bridges support speeds of up to 12Mbps, and USB 2.0 speeds of up to 480Mbps. Packets are received and transmitted over separate USB bulk transfer endpoints.

The cdce driver does not support different media types or options. For more information on configuring this device, see ifconfig(8).

Diagnostics

cdce0: extra ethernet descriptor

There is more than one Ethernet descriptor.

cdce0: no data interface

The data interface announced by the union descriptor cannot be found.

cdce0: no descriptor for interrupt endpoint N
cdce0: interface alternate setting N failed
cdce0: no descriptor for bulk endpoint N
cdce0: could not find data bulk in/out

For a manually added USB vendor/product, these errors indicate that the bridge is not compatible with the driver.

cdce0: watchdog timeout

A packet was queued for transmission and a transmit command was issued, however the device failed to acknowledge the transmission before a timeout expired.

cdce0: no memory for rx list -- packet dropped!

Memory allocation through MGETHDR or MCLGET failed, the system is running low on mbufs.

cdce0: abort/close rx/tx/interrupt pipe failed
cdce0: rx/tx list init failed
cdce0: open rx/tx/interrupt pipe failed
cdce0: usb error on rx/tx

Caveats

Many USB devices notoriously fail to report their class and interfaces correctly. Undetected products might work flawlessly when their vendor and product IDs are added to the driver manually.

Releases

46 releases since OpenBSD 3.6; the text changed 16 times.

  1. 3.6
  2. 3.7
  3. 3.8
  4. 3.9
  5. 4.0–4.1
  6. 4.2–4.3
  7. 4.4–5.0
  8. 5.1–5.2
  9. 5.3
  10. 5.4
  11. 5.5–5.8
  12. 5.9–6.0
  13. 6.1–6.2
  14. 6.3–6.5
  15. 6.6–6.7
  16. 6.8–7.1
  17. 7.2–8.0

History

The cdce device driver first appeared in OpenBSD 3.6.

Authors

The cdce driver was written by Craig Boston ⟨[email protected]⟩ based on the aue(4) driver written by Bill Paul ⟨[email protected]⟩ and ported to OpenBSD by Daniel Hartmeier ⟨[email protected]⟩.

From man 8.0-current-20261101 in OpenBSD 8.0-current (2026-11-01). Parsed by carta from the page's mdoc source.