]> git.ipfire.org Git - thirdparty/openvpn.git/commit
is_ipv_X: add support for parsing IP header inside a 802.1q frame
authorAntonio Quartulli <a@unstable.cc>
Wed, 9 Oct 2019 14:34:18 +0000 (16:34 +0200)
committerGert Doering <gert@greenie.muc.de>
Thu, 7 Nov 2019 20:29:42 +0000 (21:29 +0100)
commitdef3f32d216d16c3bf5a203a2162256203686a34
treeb58d24811f4e23827b583ee5c7b2f541c06b0619
parent1c57ea76a256330314d53999bce3e09644b420f9
is_ipv_X: add support for parsing IP header inside a 802.1q frame

Extend is_ipv_X() routine by properly parsing 802.1q frame rather than
dropping them.

This change is required in order to allow OpenVPN to accept VLAN tagged
frames, which otherwise would be dropped when trying to access the inner
IP header.

While at it, slightly fix the function style.

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