2012-08-10 11:55:33 +02:00
|
|
|
/*
|
2016-03-25 16:21:41 +01:00
|
|
|
* hostapd / VLAN netlink/ioctl api
|
2012-08-10 11:55:33 +02:00
|
|
|
* 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
|
|
|
|
|
2016-03-25 16:43:27 +01:00
|
|
|
struct hostapd_data;
|
|
|
|
struct hostapd_vlan;
|
|
|
|
struct full_dynamic_vlan;
|
|
|
|
|
2012-08-10 11:55:33 +02:00
|
|
|
int vlan_add(const char *if_name, int vid, const char *vlan_if_name);
|
|
|
|
int vlan_rem(const char *if_name);
|
2016-03-25 16:21:41 +01:00
|
|
|
int vlan_set_name_type(unsigned int name_type);
|
|
|
|
|
2016-03-25 16:43:27 +01:00
|
|
|
int ifconfig_helper(const char *if_name, int up);
|
2016-03-25 16:21:41 +01:00
|
|
|
int ifconfig_up(const char *if_name);
|
2016-03-25 17:00:44 +01:00
|
|
|
int iface_exists(const char *ifname);
|
2016-03-25 16:43:27 +01:00
|
|
|
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);
|
2012-08-10 11:55:33 +02:00
|
|
|
|
|
|
|
#endif /* VLAN_UTIL_H */
|