aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2017-02-28 14:57:51 +0100
committerTobias Brunner <tobias@strongswan.org>2017-05-23 18:41:31 +0200
commit83186d3cf7fc9d715e7c1bf509f22733feeec1e5 (patch)
treec2601aca56917d39d4412fb8c0d8de490fbc1cd3 /src/libcharon
parent4989aba8225f6d710ee69e56a98b90d13c37319a (diff)
downloadstrongswan-83186d3cf7fc9d715e7c1bf509f22733feeec1e5.tar.bz2
strongswan-83186d3cf7fc9d715e7c1bf509f22733feeec1e5.tar.xz
child-sa: Add new state to track installation of only the inbound SA
Diffstat (limited to 'src/libcharon')
-rw-r--r--src/libcharon/sa/child_sa.c1
-rw-r--r--src/libcharon/sa/child_sa.h7
2 files changed, 7 insertions, 1 deletions
diff --git a/src/libcharon/sa/child_sa.c b/src/libcharon/sa/child_sa.c
index dc1539fa0..9fe936a4e 100644
--- a/src/libcharon/sa/child_sa.c
+++ b/src/libcharon/sa/child_sa.c
@@ -31,6 +31,7 @@ ENUM(child_sa_state_names, CHILD_CREATED, CHILD_DESTROYING,
"CREATED",
"ROUTED",
"INSTALLING",
+ "INSTALLED_INBOUND",
"INSTALLED",
"UPDATING",
"REKEYING",
diff --git a/src/libcharon/sa/child_sa.h b/src/libcharon/sa/child_sa.h
index bc5f919ae..4d6409175 100644
--- a/src/libcharon/sa/child_sa.h
+++ b/src/libcharon/sa/child_sa.h
@@ -53,7 +53,12 @@ enum child_sa_state_t {
CHILD_INSTALLING,
/**
- * Installed an in-use CHILD_SA
+ * Installed the inbound SA of a CHILD_SA during rekeying
+ */
+ CHILD_INSTALLED_INBOUND,
+
+ /**
+ * Installed both SAs of a CHILD_SA
*/
CHILD_INSTALLED,