aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/vlan_util.h
diff options
context:
space:
mode:
authorMichael Braun <michael-dev@fami-braun.de>2012-08-10 09:55:33 (GMT)
committerJouni Malinen <j@w1.fi>2012-08-10 11:09:05 (GMT)
commit03a6a2e972745f992dad90daedb0984f831dc747 (patch)
tree278cb6e08108bceba88c7d2791e096fa77da013d /src/ap/vlan_util.h
parenta00237ceb8644fc270efd9fc0d0f8d0465db8410 (diff)
downloadhostap-03a6a2e972745f992dad90daedb0984f831dc747.zip
hostap-03a6a2e972745f992dad90daedb0984f831dc747.tar.gz
hostap-03a6a2e972745f992dad90daedb0984f831dc747.tar.bz2
Add option to use netlink to create and remove VLAN interfaces
CONFIG_VLAN_NETLINK=y build option can now be used to replace the ioctl()-based interface for creating and removing VLAN interfaces with netlink-based interface. Signed-hostap: M. Braun <michael-dev@fami-braun.de>
Diffstat (limited to 'src/ap/vlan_util.h')
-rw-r--r--src/ap/vlan_util.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/ap/vlan_util.h b/src/ap/vlan_util.h
new file mode 100644
index 0000000..bef5a16
--- /dev/null
+++ b/src/ap/vlan_util.h
@@ -0,0 +1,15 @@
+/*
+ * hostapd / VLAN netlink api
+ * 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
+
+int vlan_add(const char *if_name, int vid, const char *vlan_if_name);
+int vlan_rem(const char *if_name);
+
+#endif /* VLAN_UTIL_H */