diff options
author | tobhe <tobhe@cvs.openbsd.org> | 2020-11-29 21:00:45 +0000 |
---|---|---|
committer | tobhe <tobhe@cvs.openbsd.org> | 2020-11-29 21:00:45 +0000 |
commit | 3a5032fcb21ce0d0a271038685d836f0dbb48699 (patch) | |
tree | 4e45ade3ce47c7d8c50bf79bf72bed80b2fa1306 /sbin/iked/config.c | |
parent | 73909514e2a052167c492907689670729a06c359 (diff) |
Add 'set stickyaddress' option. If this option is enabled, iked will try
to assign the same 'config address' when an IKESA is negotiated with the
DSTID of an existing IKESA. The original IKESA will be closed and the
address will be transferred to the new IKESA.
ok patrick@
Diffstat (limited to 'sbin/iked/config.c')
-rw-r--r-- | sbin/iked/config.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/iked/config.c b/sbin/iked/config.c index ecf03e64cd3..a77e5320381 100644 --- a/sbin/iked/config.c +++ b/sbin/iked/config.c @@ -1,4 +1,4 @@ -/* $OpenBSD: config.c,v 1.73 2020/11/25 22:17:13 tobhe Exp $ */ +/* $OpenBSD: config.c,v 1.74 2020/11/29 21:00:43 tobhe Exp $ */ /* * Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de> @@ -880,6 +880,8 @@ config_getstatic(struct iked *env, struct imsg *imsg) log_debug("%s: %sfragmentation", __func__, env->sc_frag ? "" : "no "); log_debug("%s: %smobike", __func__, env->sc_mobike ? "" : "no "); log_debug("%s: nattport %u", __func__, env->sc_nattport); + log_debug("%s: %sstickyaddress", __func__, + env->sc_stickyaddress ? "" : "no "); return (0); } |