]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix is_ipv6 in case of tap interface.
authorDmitrij Tejblum <dt@yandex.ru>
Sat, 8 Feb 2014 15:33:49 +0000 (19:33 +0400)
committerGert Doering <gert@greenie.muc.de>
Tue, 29 Apr 2014 20:35:50 +0000 (22:35 +0200)
commitdb037c20086587a609ef33127c15de080270f2cb
tree7518bb78a4b1ea589c2d5b7b42bd7237144af95b
parentea31bc680fc83946b2cc8d0c93544a1ab2a01d63
Fix is_ipv6 in case of tap interface.

While checking a packet on a TAP interface, is_ipv_X() in proto.c
insist that the ethertype must be OPENVPN_ETH_P_IPV4, even if
the protocol is IPv6. So the protocol never match, and, thus,
mssfix doesn't work for IPv6 on TAP interface. Fix that.

Signed-off-by: Dmitrij Tejblum <dt@yandex.ru>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1391873629-14388-1-git-send-email-dt@yandex.ru>
URL: http://article.gmane.org/gmane.network.openvpn.devel/8259
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/proto.c