mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-11 14:44:03 -05:00
Normally nl80211 driver will attempt to strictly control what bridge given interface is put in. It'll attempt to remove it from an existing bridge if it doesn't match the configured one. If it's not in a bridge it'll try to put it into one. If any of this fails then hostapd will bail out and not set up the BSS at all. Arguably that's reasonable since it allows to set the BSS up coherently with regard to EAPOL handling as well as allows extra interactions with things like FDB. However, not all hostapd drivers interact with bridge= the same way. One example is atheros. Therefore it's not clear what the desired behavior should be if consistency across drivers is considered. There's a case where one might want to use a non-native Linux bridge, e.g., openvswitch, in which case regular ioctls won't work to put an interface into a bridge, or figure out what bridge an interface is in. The underlying wireless driver can still be an ordinary nl80211 driver. This change relaxes the bridge setup failure so that hostapd still starts even if it fails to add an interface into a configured bridge name. It still sets up all the necessary sockets (including the configured bridge=) so EAPOL handling should work fine. This then leaves it to the system integrator to manage wireless interface as bridge ports and possibly fdb hints too. Signed-off-by: Michal Kazior <michal@plume.com> |
||
---|---|---|
.. | ||
.gitignore | ||
android_drv.h | ||
driver_atheros.c | ||
driver_bsd.c | ||
driver_common.c | ||
driver_hostap.c | ||
driver_hostap.h | ||
driver_macsec_linux.c | ||
driver_macsec_qca.c | ||
driver_ndis_.c | ||
driver_ndis.c | ||
driver_ndis.h | ||
driver_nl80211_android.c | ||
driver_nl80211_capa.c | ||
driver_nl80211_event.c | ||
driver_nl80211_monitor.c | ||
driver_nl80211_scan.c | ||
driver_nl80211.c | ||
driver_nl80211.h | ||
driver_none.c | ||
driver_openbsd.c | ||
driver_privsep.c | ||
driver_roboswitch.c | ||
driver_wext.c | ||
driver_wext.h | ||
driver_wired_common.c | ||
driver_wired_common.h | ||
driver_wired.c | ||
driver.h | ||
drivers.c | ||
drivers.mak | ||
drivers.mk | ||
linux_defines.h | ||
linux_ioctl.c | ||
linux_ioctl.h | ||
linux_wext.h | ||
Makefile | ||
ndis_events.c | ||
netlink.c | ||
netlink.h | ||
nl80211_copy.h | ||
priv_netlink.h | ||
rfkill.c | ||
rfkill.h |