]> git.ipfire.org Git - thirdparty/hostap.git/commit
radius: Add tagged VLAN parsing
authorMichael Braun <michael-dev@fami-braun.de>
Thu, 21 Jan 2016 13:51:57 +0000 (14:51 +0100)
committerJouni Malinen <j@w1.fi>
Wed, 17 Feb 2016 09:46:13 +0000 (11:46 +0200)
commit8e44c192da28a2b8755d65df5d4963496da36c2a
tree7ffb70fafb894a2f3df0aae3f6e84830845fb899
parent1889af2e0f89f9a98171761683eb1c244584daf8
radius: Add tagged VLAN parsing

1. Add tagged VLAN to struct vlan_description
    (compile limited number of tagged VLANs per description)
    For k tagged VLANs, the first k entries in vlan_description.tagged
    are used. They are sorted in ascending order. All other entries are
    zero. This way os_memcmp() can find identical configurations.
2. Let tagged VLANs be parsed from RADIUS Access-Accept
3. Print VLAN %d+ with %d=untagged VID if tagged VLANs are set
4. Select an unused vlan_id > 4096 for new tagged VLAN configurations
5. Add EGRESS_VLAN RADIUS attribute parsing also for untagged VLANs

Signed-off-by: Michael Braun <michael-dev@fami-braun.de>
src/ap/ap_config.c
src/ap/ieee802_11.c
src/ap/ieee802_11_auth.c
src/ap/ieee802_1x.c
src/ap/sta_info.c
src/ap/vlan.h
src/ap/wpa_auth_ie.c
src/radius/radius.c
src/radius/radius.h