From: Stefan Sperling Subject: Re: if_urndis: match USB RNDIS (ef/04/01) [Mudi 7 router] To: Nick H Cc: tech@openbsd.org Date: Fri, 16 Oct 2026 11:47:52 +0200 On Thu, Oct 15, 2026 at 06:53:03PM +0100, Nick H wrote: > I can connect from my OpenBSD laptop to a new Mudi 7 travel router > using its wired ethernet port and wireless mode, but not via urndis > using the USB-C cable. The device showed in dmesg as: > > ugen2 at uhub1 port 4 "GL.iNet Mudi 7 (GL-E5800)" rev 3.20/5.15 addr 5 > > I looked at the USB descriptors for the device, it had a class of > "ef", a subclass of "04", and a protocol of "01" which was not being > matched and falling back to ugen. > > Below are patches for /usr/src/sys/dev/usb/usb.h and > /usr/src/sys/dev/usb/if_urndis.c to match the additional subclass and > protocol, similar to what currently exists in NetBSD. After patching, > rebuilding the kernel, and rebooting, dmesg shows: > > urndis0 at uhub1 port 4 configuration 1 interface 0 "GL.iNet Mudi 7 > (GL-E5800)" rev 3.20/5.15 addr 5 > urndis0: using RNDIS over Ethernet, address 7c:84:c1:xx:xx:xx > ugen2 at uhub1 port 4 configuration 1 "GL.iNet Mudi 7 (GL-E5800)" rev > 3.20/5.15 addr 5 > > Adding "dhcp" to /etc/hostname.urndis0 and running sh /etc/netstart > urndis0, the interface receives an address allocated by the Mudi and I > can successfully connect to its upstream networks. Tested on a > Thinkpad X1 Carbon Gen 6 running OpenBSD-CURRENT with Mudi 7 router > (firmware 4.10.0, September 2026) set to USB Tethering mode. > > v/r > Nick Committed, thank you!