]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
ha: Ignore per-CPU CHILD_SAs
authorTobias Brunner <tobias@strongswan.org>
Mon, 31 May 2021 13:26:27 +0000 (15:26 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 28 May 2025 14:35:26 +0000 (16:35 +0200)
These only work on initiators (with trap policies), which is something
the plugin doesn't support.

src/libcharon/plugins/ha/ha_child.c

index 9d8fca9eb464c571b57296835251b34d4b05230f..ee33850049442daaee1057c4abe136dd60a753fd 100644 (file)
@@ -66,6 +66,10 @@ METHOD(listener_t, child_keys, bool,
        {       /* do not sync SA between nodes */
                return TRUE;
        }
+       if (child_sa->use_per_cpu(child_sa))
+       {       /* ignore per-CPU SAs */
+               return TRUE;
+       }
 
        m = ha_message_create(HA_CHILD_ADD);
 
@@ -167,7 +171,10 @@ METHOD(listener_t, child_state_change, bool,
        {       /* do not sync SA between nodes */
                return TRUE;
        }
-
+       if (child_sa->use_per_cpu(child_sa))
+       {       /* ignore per-CPU SAs */
+               return TRUE;
+       }
 
        if (state == CHILD_DESTROYING)
        {