From f90561155b51631a6f1288c08f86c7d47d759c0c Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Fri, 26 Jan 2018 14:03:33 +0100 Subject: [PATCH] ike: Add log message if host moves out of NAT --- src/libcharon/sa/ike_sa.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libcharon/sa/ike_sa.c b/src/libcharon/sa/ike_sa.c index 4123cc49d..3b0825269 100644 --- a/src/libcharon/sa/ike_sa.c +++ b/src/libcharon/sa/ike_sa.c @@ -734,8 +734,11 @@ METHOD(ike_sa_t, set_condition, void, switch (condition) { case COND_NAT_HERE: - case COND_NAT_FAKE: case COND_NAT_THERE: + DBG1(DBG_IKE, "%s host is not behind NAT anymore", + condition == COND_NAT_HERE ? "local" : "remote"); + /* fall-through */ + case COND_NAT_FAKE: set_condition(this, COND_NAT_ANY, has_condition(this, COND_NAT_HERE) || has_condition(this, COND_NAT_THERE) ||