aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/vlan_util.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-03-25 15:21:41 (GMT)
committerJouni Malinen <j@w1.fi>2016-03-25 15:24:20 (GMT)
commit84d6755108677f8ca542f49a3c0ca0c45deac40b (patch)
treec842c31ff01a0c221c17f98d32ba41940fade6b7 /src/ap/vlan_util.h
parentcb38bc886e66d7ef20728fa6516aa28384a5febe (diff)
downloadhostap-84d6755108677f8ca542f49a3c0ca0c45deac40b.zip
hostap-84d6755108677f8ca542f49a3c0ca0c45deac40b.tar.gz
hostap-84d6755108677f8ca542f49a3c0ca0c45deac40b.tar.bz2
vlan: Clean up netlink vs. ioctl API implementation
Move the ioctl-based VLAN implementation to a separate file to avoid need for conditional blocks within vlan_ioctl.c. This removes the internal CONFIG_VLAN_NETLINK define, i.e., this is now used only in build configuration (.config) to select whether to include the vlan_util.c (netlink) or vlan_ioctl.c (ioctl) implementation of the functions. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/ap/vlan_util.h')
-rw-r--r--src/ap/vlan_util.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ap/vlan_util.h b/src/ap/vlan_util.h
index bef5a16..4eda793 100644
--- a/src/ap/vlan_util.h
+++ b/src/ap/vlan_util.h
@@ -1,5 +1,5 @@
/*
- * hostapd / VLAN netlink api
+ * hostapd / VLAN netlink/ioctl api
* Copyright (c) 2012, Michael Braun <michael-dev@fami-braun.de>
*
* This software may be distributed under the terms of the BSD license.
@@ -11,5 +11,8 @@
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_up(const char *if_name);
#endif /* VLAN_UTIL_H */