]> git.ipfire.org Git - thirdparty/openvpn.git/commit
VLAN: allow forwarding tagged and untagged packets on the server TAP device
authorAntonio Quartulli <a@unstable.cc>
Wed, 9 Oct 2019 14:34:20 +0000 (16:34 +0200)
committerGert Doering <gert@greenie.muc.de>
Sat, 9 Nov 2019 09:58:45 +0000 (10:58 +0100)
commitd626fa179b215a12398051ffca25b43ecfc0ad60
treeab4f8a6c96f5f4c31c86b109304e81673f5c2533
parente375a5ce555a66c8b6b2ac2869977e723a65982f
VLAN: allow forwarding tagged and untagged packets on the server TAP device

This changes allows the user to configure the server TAP interface to
forward both VLAN tagged and untagged packets (i.e. vlan_accept ==
VLAN_ALL).

Untagged packets are marked with the VID configured in the server
configuration file, while tagged packets will keep their header as it
is.

Forwarding is then performed following the standard rules, while
ensuring that pakcets do not leave the VLAN they belong to.

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-8-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg18919.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/options.c
src/openvpn/options.h
src/openvpn/vlan.c