]> www.infradead.org Git - users/dwmw2/vpnc-scripts.git/commit
Revive route cleanup for /sbin/route code
authorGernot Hillier <gernot.hillier@siemens.com>
Wed, 21 Feb 2018 16:46:43 +0000 (17:46 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Mon, 26 Feb 2018 15:22:35 +0000 (16:22 +0100)
commit3938e1f3576220b48fd52228f24fb7db326a687c
tree558e78e9507c6cff487fb54409aeab31deca7f17
parent3daa611e476a2fbfdb2e6f6c8f0cdc1593ccb0ae
Revive route cleanup for /sbin/route code

Cleanup our routes upon disconnect also when using /sbin/route command - even
if OS will do it for us when TUNDEV gets removed. That's the same what the
ip-route code already does.

Additionally, we obviously didn't need route deletion in set_network_route for
/sbin/route mode - this function didn't do anything until now. So remove this
call -- it's a bad idea to call del_network_route inside set_network_route
anyways because both modify the same global variables.

Signed-off-by: Gernot Hillier <gernot.hillier@siemens.com>
Tested-by: Thomas Zander <thomas.zander@siemens.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
vpnc-script