]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
child-sa: Pass HW offload mode for policies
authorTobias Brunner <tobias@strongswan.org>
Mon, 19 Dec 2022 11:50:54 +0000 (12:50 +0100)
committerTobias Brunner <tobias@strongswan.org>
Thu, 16 Feb 2023 12:25:34 +0000 (13:25 +0100)
src/libcharon/sa/child_sa.c

index a29531ccbc0d7a66a90bc415d140cb9e688e1785..8f101e1ff01e7b244e7ba73a20bbbb1a1d00e41e 100644 (file)
@@ -1094,6 +1094,7 @@ static status_t install_policies_inbound(private_child_sa_t *this,
                .type = type,
                .prio = priority,
                .manual_prio = manual_prio,
+               .hw_offload = this->config->get_hw_offload(this->config),
                .src = other_addr,
                .dst = my_addr,
                .sa = my_sa,
@@ -1131,6 +1132,7 @@ static status_t install_policies_outbound(private_child_sa_t *this,
                .type = type,
                .prio = priority,
                .manual_prio = manual_prio,
+               .hw_offload = this->config->get_hw_offload(this->config),
                .src = my_addr,
                .dst = other_addr,
                .sa = other_sa,
@@ -1206,6 +1208,7 @@ static void del_policies_inbound(private_child_sa_t *this,
                .type = type,
                .prio = priority,
                .manual_prio = manual_prio,
+               .hw_offload = this->config->get_hw_offload(this->config),
                .src = other_addr,
                .dst = my_addr,
                .sa = my_sa,
@@ -1242,6 +1245,7 @@ static void del_policies_outbound(private_child_sa_t *this,
                .type = type,
                .prio = priority,
                .manual_prio = manual_prio,
+               .hw_offload = this->config->get_hw_offload(this->config),
                .src = my_addr,
                .dst = other_addr,
                .sa = other_sa,