[PATCH 0/4] Use netlink for vlan interface management

Michael Braun michael-dev
Sat Jul 7 01:52:01 PDT 2012


These patches make hostapd use the netlink api to create and remove vlan
interfaces instead of the old kernel api.
This removes the dependency from the system global linux vlan interface name
type. It thus avoids conflicts with other applications, that can result in
a non-usable network configuration, as the new vlan interfaces won't be added
into the brige (due to the expected name being different from the actual name).

Signed-hostap: M. Braun <michael-dev at fami-braun.de>

---

Michael Braun (4):
      add configure option to set vlan naming scheme
      use netlink to create vlan interface
      use netlink to remove vlan interface
      remove obsolete include to kernel vlan api


 hostapd/Android.mk      |    1 
 hostapd/Makefile        |    1 
 hostapd/config_file.c   |    9 ++
 hostapd/hostapd.conf    |    6 +
 src/ap/ap_config.h      |    4 +
 src/ap/vlan_init.c      |  167 ++++--------------------------------------
 src/ap/vlan_util.c      |  189 +++++++++++++++++++++++++++++++++++++++++++++++
 src/ap/vlan_util.h      |   22 +++++
 src/drivers/drivers.mak |   20 +++++
 src/drivers/drivers.mk  |   21 +++++
 10 files changed, 291 insertions(+), 149 deletions(-)
 create mode 100644 src/ap/vlan_util.c
 create mode 100644 src/ap/vlan_util.h




More information about the Hostap mailing list