]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix removal of on-link prefix on windows with netsh
authorGert Doering <gert@greenie.muc.de>
Tue, 20 Feb 2018 16:00:16 +0000 (17:00 +0100)
committerGert Doering <gert@greenie.muc.de>
Thu, 22 Feb 2018 15:39:18 +0000 (16:39 +0100)
commit2cea72005cb5a825c25494959d550ae16562676a
tree5ea0ddfbc427c0ef670e4cc85920d6b712791b9a
parent06ad53e067d9a8be571a27f44005fa7e8038f69e
Fix removal of on-link prefix on windows with netsh

When adding / removing IPv6 routes, the host bits need to be zeroed or
netsh.exe will refuse to handle the route.

Commit a24dd2e31 changed the way this is done, breaking removal of
the on-link IPv6 prefix for windows + netsh.exe.

Fix by adding explicitly calling route_ipv6_clear_host_bits() from
delete_route_connected_v6_net().

Trac: #1003

Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: Selva Nair <selva.nair@gmail.com>
Message-Id: <20180220160016.69786-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg16508.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/route.c
src/openvpn/route.h
src/openvpn/tun.c