]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix IPv6 routes on tap interfaces on OpenSolaris/OpenIndiana
authorGert Doering <gert@greenie.muc.de>
Wed, 9 Oct 2019 09:52:00 +0000 (11:52 +0200)
committerGert Doering <gert@greenie.muc.de>
Mon, 28 Oct 2019 18:12:57 +0000 (19:12 +0100)
commit0b2b25dfa3a19aba9c99e9a55a082fe85c4ccd59
tree46b73a5cafae963fe65520a4742105480dd61118
parentbdfa0d3540b7836f72dc5f2ddb8239154d152061
Fix IPv6 routes on tap interfaces on OpenSolaris/OpenIndiana

The "route add" code always used "metric 0" on OpenSolaris, because
(on tun interfaces) it was required to make the route work on
"non-ethernet" interfaces (connected, no NDP).

This breaks routes via tap interfaces on recent Solaris versions
(tested on OpenIndiana 2019) - there, routes only work if metric
is != 0 (or just not set).  Otherwise it tries to map the gateway
address to a local address and fails.

Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: Antonio Quartulli <antonio@openvpn.net>
Message-Id: <20191009095200.9337-2-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg18906.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit 01b3a48c29df6dc4bade3d8fb7903346a3f77887)
src/openvpn/route.c