Add option to use netlink to create and remove VLAN interfaces
CONFIG_VLAN_NETLINK=y build option can now be used to replace the ioctl()-based interface for creating and removing VLAN interfaces with netlink-based interface. Signed-hostap: M. Braun <michael-dev@fami-braun.de>
This commit is contained in:
parent
a00237ceb8
commit
03a6a2e972
8 changed files with 264 additions and 3 deletions
15
src/ap/vlan_util.h
Normal file
15
src/ap/vlan_util.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* hostapd / VLAN netlink api
|
||||
* Copyright (c) 2012, Michael Braun <michael-dev@fami-braun.de>
|
||||
*
|
||||
* This software may be distributed under the terms of the BSD license.
|
||||
* See README for more details.
|
||||
*/
|
||||
|
||||
#ifndef VLAN_UTIL_H
|
||||
#define VLAN_UTIL_H
|
||||
|
||||
int vlan_add(const char *if_name, int vid, const char *vlan_if_name);
|
||||
int vlan_rem(const char *if_name);
|
||||
|
||||
#endif /* VLAN_UTIL_H */
|
Loading…
Add table
Add a link
Reference in a new issue