From patchwork Sat Jul 27 16:10:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: michael-dev X-Patchwork-Id: 262465 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from maxx.maxx.shmoo.com (maxx.shmoo.com [205.134.188.171]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "maxx.shmoo.com", Issuer "CA Cert Signing Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id A678F2C00FD for ; Sun, 28 Jul 2013 02:10:27 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id A59939D36C; Sat, 27 Jul 2013 12:10:25 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7PhRw67Ft+A3; Sat, 27 Jul 2013 12:10:25 -0400 (EDT) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id F009E9D36F; Sat, 27 Jul 2013 12:10:20 -0400 (EDT) X-Original-To: mailman-post+hostap@maxx.shmoo.com Delivered-To: mailman-post+hostap@maxx.shmoo.com Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id A7D649D373 for ; Sat, 27 Jul 2013 12:10:19 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Cnpl423TZ5L5 for ; Sat, 27 Jul 2013 12:10:14 -0400 (EDT) Received: from mail.fem.tu-ilmenau.de (mail.fem.tu-ilmenau.de [141.24.101.79]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id EDD649D36F for ; Sat, 27 Jul 2013 12:10:12 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.fem.tu-ilmenau.de (Postfix) with ESMTP id 85EDE65C2 for ; Sat, 27 Jul 2013 18:10:12 +0200 (CEST) X-Virus-Scanned: amavisd-new at fem.tu-ilmenau.de Received: from mail.fem.tu-ilmenau.de ([127.0.0.1]) by localhost (mail.fem.tu-ilmenau.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aZDjvtF-Emgo; Sat, 27 Jul 2013 18:10:11 +0200 (CEST) Received: from a234.fem.tu-ilmenau.de (unknown [10.42.51.234]) by mail.fem.tu-ilmenau.de (Postfix) with ESMTP; Sat, 27 Jul 2013 18:10:11 +0200 (CEST) Received: from [10.42.51.234] (localhost [127.0.0.1]) by a234.fem.tu-ilmenau.de (Postfix) with ESMTP id 125B5BD0; Sat, 27 Jul 2013 18:10:11 +0200 (CEST) Subject: [PATCH v3 04/25] add CONFIG_VLAN_TAGGED configuration option To: hostap@lists.shmoo.com From: Michael Braun Date: Sat, 27 Jul 2013 18:10:11 +0200 Message-ID: <20130727161002.1152.29033.stgit@ray-controller> In-Reply-To: <20130727160024.1152.46147.stgit@ray-controller> References: <20130727160024.1152.46147.stgit@ray-controller> User-Agent: StGit/0.16 MIME-Version: 1.0 Cc: projekt-wlan@fem.tu-ilmenau.de X-BeenThere: hostap@lists.shmoo.com X-Mailman-Version: 2.1.11 Precedence: list List-Id: HostAP Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: hostap-bounces@lists.shmoo.com Errors-To: hostap-bounces@lists.shmoo.com Signed-hostap: Michael Braun --- hostapd/Makefile | 3 +++ hostapd/defconfig | 3 +++ hostapd/hostapd.conf | 14 ++++++++++---- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/hostapd/Makefile b/hostapd/Makefile index 07e3c88..8e244c0 100644 --- a/hostapd/Makefile +++ b/hostapd/Makefile @@ -140,6 +140,9 @@ ifdef CONFIG_LIBNL32 endif endif +ifdef CONFIG_VLAN_TAGGED +CFLAGS += -DCONFIG_VLAN_TAGGED +endif endif ifdef CONFIG_NO_CTRL_IFACE diff --git a/hostapd/defconfig b/hostapd/defconfig index 41a78ca..5de4734 100644 --- a/hostapd/defconfig +++ b/hostapd/defconfig @@ -175,6 +175,9 @@ CONFIG_IPV6=y #CONFIG_VLAN_NETLINK=y #CONFIG_LIBNL32=y +# Enable support for tagged VLANs. +# CONFIG_VLAN_TAGGED=y + # Remove support for dumping state into a file on SIGUSR1 signal # This can be used to reduce binary size at the cost of disabling a debugging # option. diff --git a/hostapd/hostapd.conf b/hostapd/hostapd.conf index c46dff5..a1dbdfe 100644 --- a/hostapd/hostapd.conf +++ b/hostapd/hostapd.conf @@ -840,10 +840,14 @@ own_ip_addr=127.0.0.1 # Dynamic VLAN mode; allow RADIUS authentication server to decide which VLAN # is used for the stations. This information is parsed from following RADIUS -# attributes based on RFC 3580 and RFC 2868: Tunnel-Type (value 13 = VLAN), -# Tunnel-Medium-Type (value 6 = IEEE 802), Tunnel-Private-Group-ID (value -# VLANID as a string). Optionally, the local MAC ACL list (accept_mac_file) can -# be used to set static client MAC address to VLAN ID mapping. +# attributes based on RFC 3580, RFC 2868 and RFC 4675: +# a) Tunnel-Type (value 13 = VLAN), Tunnel-Medium-Type (value 6 = IEEE 802), +# Tunnel-Private-Group-ID (value VLANID as a string) +# b) Egress-VLAN-ID (see RFC 4675). +# Optionally, the local MAC ACL list (accept_mac_file) can be used to set +# static client MAC address to VLAN ID mapping. If tagged vlans are used, +# append "t" and the tagged vlan id to the untagged vlan id (multiple times +# if needed). # 0 = disabled (default) # 1 = option; use default interface if RADIUS server does not include VLAN ID # 2 = required; reject authentication if RADIUS server does not include VLAN ID @@ -855,6 +859,8 @@ own_ip_addr=127.0.0.1 # multiple BSSIDs or SSIDs. Each line in this text file is defining a new # interface and the line must include VLAN ID and interface name separated by # white space (space or tab). +# If tagged vlans are used, append "t" and the tagged vlan id to the untagged +# vlan id (multiple times if needed). # If no entries are provided by this file, the station is statically mapped # to . interfaces. #vlan_file=/etc/hostapd.vlan