From: Tobias Brunner Date: Wed, 25 Jan 2023 13:40:39 +0000 (+0100) Subject: shunt-manager: Pass HW offload mode when installing policies X-Git-Tag: android-2.4.1~4^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=763014c028000c32077e16d6314ef26bf2709bb3;p=thirdparty%2Fstrongswan.git shunt-manager: Pass HW offload mode when installing policies --- diff --git a/src/libcharon/sa/shunt_manager.c b/src/libcharon/sa/shunt_manager.c index 1b21f9e3ea..c19b1fa396 100644 --- a/src/libcharon/sa/shunt_manager.c +++ b/src/libcharon/sa/shunt_manager.c @@ -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,