Refactor iked process shutdown and cleanup. Remember configured
authortobhe <tobhe@openbsd.org>
Thu, 13 May 2021 15:20:48 +0000 (15:20 +0000)
committertobhe <tobhe@openbsd.org>
Thu, 13 May 2021 15:20:48 +0000 (15:20 +0000)
commit91e971e46a05224f4684e2ff40d04bffede5e542
treee660f7d4c68d849cf8b87ab08ebcbd509223178c
parentcc86847b25b69967ae39b0e3dd4e0255e92176f3
Refactor iked process shutdown and cleanup. Remember configured
addresses and routes in iked_vroute_sc to not depend on ikev2
process for cleanup.

This makes sure that all flows, routes and addresses are deleted
no matter which process is killed first.

ok patrick@
sbin/iked/config.c
sbin/iked/iked.c
sbin/iked/iked.h
sbin/iked/ikev2.c
sbin/iked/types.h
sbin/iked/vroute.c