]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
kernel-netlink: Forward CPU ID from acquires
authorTobias Brunner <tobias@strongswan.org>
Thu, 20 May 2021 08:04:46 +0000 (10:04 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 28 May 2025 14:35:27 +0000 (16:35 +0200)
src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c

index 2e47ecc5c874862914cb2670a7ddb0b17e4ee75b..cf3d2e1ae21b2473b37eae6f77f1a1aef70928c7 100644 (file)
@@ -997,6 +997,10 @@ static void process_acquire(private_kernel_netlink_ipsec_t *this,
                        struct xfrm_user_tmpl* tmpl = RTA_DATA(rta);
                        reqid = tmpl->reqid;
                }
+               if (rta->rta_type == XFRMA_SA_PCPU)
+               {
+                       data.cpu = *(uint32_t*)RTA_DATA(rta);
+               }
 #ifdef USE_SELINUX
                if (rta->rta_type == XFRMA_SEC_CTX)
                {