child-sa: Add new state to track installation of only the inbound SA
authorTobias Brunner <tobias@strongswan.org>
Tue, 28 Feb 2017 13:57:51 +0000 (14:57 +0100)
committerTobias Brunner <tobias@strongswan.org>
Tue, 23 May 2017 16:41:31 +0000 (18:41 +0200)
src/libcharon/sa/child_sa.c
src/libcharon/sa/child_sa.h

index dc1539f..9fe936a 100644 (file)
@@ -31,6 +31,7 @@ ENUM(child_sa_state_names, CHILD_CREATED, CHILD_DESTROYING,
        "CREATED",
        "ROUTED",
        "INSTALLING",
+       "INSTALLED_INBOUND",
        "INSTALLED",
        "UPDATING",
        "REKEYING",
index bc5f919..4d64091 100644 (file)
@@ -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,