]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
shunt-manager: Pass HW offload mode when installing policies
authorTobias Brunner <tobias@strongswan.org>
Wed, 25 Jan 2023 13:40:39 +0000 (14:40 +0100)
committerTobias Brunner <tobias@strongswan.org>
Thu, 16 Feb 2023 12:25:34 +0000 (13:25 +0100)
src/libcharon/sa/shunt_manager.c

index 1b21f9e3eaad446f52fc214ace5c20f795a4b4d9..c19b1fa396c1ad79536cdb93b5346bb4efb9c515 100644 (file)
@@ -95,6 +95,7 @@ static bool install_shunt_policy(child_cfg_t *child)
        policy_type_t policy_type;
        policy_priority_t policy_prio;
        status_t status = SUCCESS;
+       hw_offload_t hw_offload;
        uint32_t manual_prio;
        char *interface;
        bool fwd_out;
@@ -125,6 +126,7 @@ static bool install_shunt_policy(child_cfg_t *child)
        hosts->destroy(hosts);
 
        manual_prio = child->get_manual_prio(child);
+       hw_offload = child->get_hw_offload(child);
        interface = child->get_interface(child);
        fwd_out = child->has_option(child, OPT_FWD_OUT_POLICIES);
 
@@ -157,6 +159,7 @@ static bool install_shunt_policy(child_cfg_t *child)
                                .type = policy_type,
                                .prio = policy_prio,
                                .manual_prio = manual_prio,
+                               .hw_offload = hw_offload,
                                .src = host_any,
                                .dst = host_any,
                                .sa = &sa,