blob: 244685975c0be1d4e3ddc55231b3dc53c281e093 [file] [log] [blame]
Dmitry Shmidt61d9df32012-08-29 16:22:06 -07001/*
Dmitry Shmidte4663042016-04-04 10:07:49 -07002 * hostapd / VLAN netlink/ioctl api
Dmitry Shmidt61d9df32012-08-29 16:22:06 -07003 * 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 Shmidte4663042016-04-04 10:07:49 -070012struct hostapd_data;
13struct hostapd_vlan;
14struct full_dynamic_vlan;
15
Dmitry Shmidt61d9df32012-08-29 16:22:06 -070016int vlan_add(const char *if_name, int vid, const char *vlan_if_name);
17int vlan_rem(const char *if_name);
Dmitry Shmidte4663042016-04-04 10:07:49 -070018int vlan_set_name_type(unsigned int name_type);
19
20int ifconfig_helper(const char *if_name, int up);
21int ifconfig_up(const char *if_name);
22int iface_exists(const char *ifname);
23int vlan_if_remove(struct hostapd_data *hapd, struct hostapd_vlan *vlan);
24
25struct full_dynamic_vlan *
26full_dynamic_vlan_init(struct hostapd_data *hapd);
27void full_dynamic_vlan_deinit(struct full_dynamic_vlan *priv);
28void vlan_newlink(const char *ifname, struct hostapd_data *hapd);
29void vlan_dellink(const char *ifname, struct hostapd_data *hapd);
Dmitry Shmidt61d9df32012-08-29 16:22:06 -070030
31#endif /* VLAN_UTIL_H */