Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1 | /* |
Dmitry Shmidt | e466304 | 2016-04-04 10:07:49 -0700 | [diff] [blame] | 2 | * hostapd / VLAN netlink/ioctl api |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 3 | * Copyright (c) 2012, Michael Braun <michael-dev@fami-braun.de> |
| 4 | * |
| 5 | * This software may be distributed under the terms of the BSD license. |
| 6 | * See README for more details. |
| 7 | */ |
| 8 | |
| 9 | #ifndef VLAN_UTIL_H |
| 10 | #define VLAN_UTIL_H |
| 11 | |
Dmitry Shmidt | e466304 | 2016-04-04 10:07:49 -0700 | [diff] [blame] | 12 | struct hostapd_data; |
| 13 | struct hostapd_vlan; |
| 14 | struct full_dynamic_vlan; |
| 15 | |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 16 | int vlan_add(const char *if_name, int vid, const char *vlan_if_name); |
| 17 | int vlan_rem(const char *if_name); |
Dmitry Shmidt | e466304 | 2016-04-04 10:07:49 -0700 | [diff] [blame] | 18 | int vlan_set_name_type(unsigned int name_type); |
| 19 | |
| 20 | int ifconfig_helper(const char *if_name, int up); |
| 21 | int ifconfig_up(const char *if_name); |
| 22 | int iface_exists(const char *ifname); |
| 23 | int vlan_if_remove(struct hostapd_data *hapd, struct hostapd_vlan *vlan); |
| 24 | |
| 25 | struct full_dynamic_vlan * |
| 26 | full_dynamic_vlan_init(struct hostapd_data *hapd); |
| 27 | void full_dynamic_vlan_deinit(struct full_dynamic_vlan *priv); |
| 28 | void vlan_newlink(const char *ifname, struct hostapd_data *hapd); |
| 29 | void vlan_dellink(const char *ifname, struct hostapd_data *hapd); |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 30 | |
| 31 | #endif /* VLAN_UTIL_H */ |