vlan: Clean up netlink vs. ioctl API implementation
[mech_eap.git] / src / ap / vlan_util.h
1 /*
2  * hostapd / VLAN netlink/ioctl api
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
12 int vlan_add(const char *if_name, int vid, const char *vlan_if_name);
13 int vlan_rem(const char *if_name);
14 int vlan_set_name_type(unsigned int name_type);
15
16 int ifconfig_up(const char *if_name);
17
18 #endif /* VLAN_UTIL_H */