vlan: Move CONFIG_FULL_DYNAMIC_VLAN functionality into a separate file
This cleans up vlan_init.c by removing number of C pre-processor dependencies. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
0fe28ddf17
commit
59d6390440
5 changed files with 768 additions and 742 deletions
|
@ -9,10 +9,22 @@
|
|||
#ifndef VLAN_UTIL_H
|
||||
#define VLAN_UTIL_H
|
||||
|
||||
struct hostapd_data;
|
||||
struct hostapd_vlan;
|
||||
struct full_dynamic_vlan;
|
||||
|
||||
int vlan_add(const char *if_name, int vid, const char *vlan_if_name);
|
||||
int vlan_rem(const char *if_name);
|
||||
int vlan_set_name_type(unsigned int name_type);
|
||||
|
||||
int ifconfig_helper(const char *if_name, int up);
|
||||
int ifconfig_up(const char *if_name);
|
||||
int vlan_if_remove(struct hostapd_data *hapd, struct hostapd_vlan *vlan);
|
||||
|
||||
struct full_dynamic_vlan *
|
||||
full_dynamic_vlan_init(struct hostapd_data *hapd);
|
||||
void full_dynamic_vlan_deinit(struct full_dynamic_vlan *priv);
|
||||
void vlan_newlink(const char *ifname, struct hostapd_data *hapd);
|
||||
void vlan_dellink(const char *ifname, struct hostapd_data *hapd);
|
||||
|
||||
#endif /* VLAN_UTIL_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue