aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/priv_netlink.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2006-09-29 23:07:49 (GMT)
committerJouni Malinen <j@w1.fi>2006-09-29 23:07:49 (GMT)
commit245157896006b7ee3490b5c7cddd87360fbee57f (patch)
treea17df4349e0b9a2d0cd03fdfb5cd4516bcc4d893 /hostapd/priv_netlink.h
parent1e2a7c68eaaabdf151fad00f94551e12f09c2569 (diff)
downloadhostap-history-245157896006b7ee3490b5c7cddd87360fbee57f.zip
hostap-history-245157896006b7ee3490b5c7cddd87360fbee57f.tar.gz
hostap-history-245157896006b7ee3490b5c7cddd87360fbee57f.tar.bz2
Merge more dynamic VLAN support from Devicescape hostapd. This commit
adds configuration options for enabling dynamic VLAN feature and basic functionality for adding and removing wireless VLAN interfaces and binding STAs to them based on RADIUS Access-Response attributes. This does not yet complete dynamic VLAN support since IEEE 802.1X and WPA authenticator state machines are not yet modified to create a new group key state machine for each new VLAN. (from Devicescape)
Diffstat (limited to 'hostapd/priv_netlink.h')
-rw-r--r--hostapd/priv_netlink.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/hostapd/priv_netlink.h b/hostapd/priv_netlink.h
index c9810b4..d1f6f66 100644
--- a/hostapd/priv_netlink.h
+++ b/hostapd/priv_netlink.h
@@ -7,6 +7,9 @@
* library, etc..
*/
+#ifndef IFLA_IFNAME
+#define IFLA_IFNAME 3
+#endif
#ifndef IFLA_WIRELESS
#define IFLA_WIRELESS 11
#endif
@@ -15,6 +18,7 @@
#define RTMGRP_LINK 1
#define RTM_BASE 0x10
#define RTM_NEWLINK (RTM_BASE + 0)
+#define RTM_DELLINK (RTM_BASE + 1)
#define NLMSG_ALIGNTO 4
#define NLMSG_ALIGN(len) (((len) + NLMSG_ALIGNTO - 1) & ~(NLMSG_ALIGNTO - 1))