opnsense-src/sys/dev/usb/net
Kornel Duleba f0c393f781 if_cdce: Add support for setting RX filtering
We can now set promisc and allmulti modes.
Filtering of given multicast addresses is not supported.
Changing the mode is done by sending a command described in:
"USB CDC Subclass Specification for Ethernet Devices v1.2, section 6.2.4".
This means that at least in theory this feature should work with all
modems that are using this driver.

This fixes Huawei E3372h-320 running new firmware in "HiLink" mode.
Previously it would reset a few seconds after its mode was changed
with "usb_modeswitch".
Setting RX filter to default value at the end of attach function
fixed that.

Sponsored by:		Stormshield
Obtained from:		Semihalf
Differential revision:	https://reviews.freebsd.org/D31766
MFC after:		2 weeks
Reviewed by:		hps
2021-09-01 12:27:14 +02:00
..
if_aue.c usb: clean up empty lines in .c and .h files 2020-09-01 21:26:44 +00:00
if_auereg.h
if_axe.c usb: clean up empty lines in .c and .h files 2020-09-01 21:26:44 +00:00
if_axereg.h
if_axge.c Add support to BELKIN B2B128 USB3 Ethernet Adapter to axge(4) 2020-09-08 04:44:37 +00:00
if_axgereg.h
if_cdce.c if_cdce: Add support for setting RX filtering 2021-09-01 12:27:14 +02:00
if_cdceem.c usb: clean up empty lines in .c and .h files 2020-09-01 21:26:44 +00:00
if_cdcereg.h if_cdce: Add support for setting RX filtering 2021-09-01 12:27:14 +02:00
if_cue.c usb: clean up empty lines in .c and .h files 2020-09-01 21:26:44 +00:00
if_cuereg.h
if_ipheth.c usb: clean up empty lines in .c and .h files 2020-09-01 21:26:44 +00:00
if_iphethvar.h ipheth(4): Fix for iOS 14 2020-11-18 19:35:30 +00:00
if_kue.c usb: clean up empty lines in .c and .h files 2020-09-01 21:26:44 +00:00
if_kuefw.h
if_kuereg.h
if_mos.c usb: clean up empty lines in .c and .h files 2020-09-01 21:26:44 +00:00
if_mosreg.h
if_muge.c usb: clean up empty lines in .c and .h files 2020-09-01 21:26:44 +00:00
if_mugereg.h
if_rue.c usb: clean up empty lines in .c and .h files 2020-09-01 21:26:44 +00:00
if_ruereg.h
if_smsc.c if_smsc: Add the ability to disable "turbo_mode", also called RX frame batching, 2021-04-11 20:25:58 +02:00
if_smscreg.h
if_udav.c usb: clean up empty lines in .c and .h files 2020-09-01 21:26:44 +00:00
if_udavreg.h
if_ure.c Narrow down the probe range for if_ure(4) compatible devices 2021-06-04 15:51:01 +02:00
if_urereg.h Add support for RTL8153B, RTL8156 and RTL8156B to if_ure(4). 2021-06-04 10:29:55 +02:00
if_urndis.c urndis(4): Add support of Inseego/Novatel Wireless MiFi 8800/8000 2020-09-10 18:27:52 +00:00
if_urndisreg.h usb: clean up empty lines in .c and .h files 2020-09-01 21:26:44 +00:00
if_usie.c usb: clean up empty lines in .c and .h files 2020-09-01 21:26:44 +00:00
if_usievar.h
ruephy.c
ruephyreg.h
uhso.c Fix for use-after-free by if_ioctl() calls from user-space in USB drivers by 2021-05-21 14:59:19 +02:00
usb_ethernet.c Fix for use-after-free by if_ioctl() calls from user-space in USB drivers by 2021-05-21 14:59:19 +02:00
usb_ethernet.h