]> git.ipfire.org Git - thirdparty/openvpn.git/commit - src/openvpn/options.h
VLAN: add basic VLAN tagging support
authorAntonio Quartulli <a@unstable.cc>
Wed, 9 Oct 2019 14:34:15 +0000 (16:34 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 6 Nov 2019 19:56:33 +0000 (20:56 +0100)
commit99f28081477ca325a14b13c38abec2c9b619eb01
treee57bdbc23be2f8ae90e940d3896e32c96f4194b6
parent277844321a981c66b781b7ef10aaf4097b702eb8
VLAN: add basic VLAN tagging support

This patch introduces basic support for VLAN tagging on the server side.
The introduced functionality consists in allowing the user to assign
a VID to the server TAP device and a VID to each client port.

Client specific VID are assigned by means of files in CCD (like for
other client specific settings).

Once VIDs have been assigned, everything works as before, except that
communications are allowed only between hosts having the same VID.

With this patch all broadcast and client-to-client traffic is yet
separated by VLAN: only client-to-server unicasts are affected.

Signed-off-by: Fabian Knittel <fabian.knittel@lettink.de>
Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20191009143422.9419-3-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg18924.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/Makefile.am
src/openvpn/errlevel.h
src/openvpn/multi.c
src/openvpn/multi.h
src/openvpn/options.c
src/openvpn/options.h
src/openvpn/proto.h
src/openvpn/vlan.c [new file with mode: 0644]
src/openvpn/vlan.h [new file with mode: 0644]