]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
kernel-ipsec: Add HW offload mode to policies
authorTobias Brunner <tobias@strongswan.org>
Mon, 19 Dec 2022 10:44:48 +0000 (11:44 +0100)
committerTobias Brunner <tobias@strongswan.org>
Thu, 16 Feb 2023 12:25:34 +0000 (13:25 +0100)
src/libcharon/kernel/kernel_ipsec.h

index ae8b82a40ff94116a0ce31dd7fe809c925e9505a..3e1c80e708307391769562a84b6d0dbec2424ad0 100644 (file)
@@ -95,7 +95,7 @@ struct kernel_ipsec_add_sa_t {
        uint16_t cpi;
        /** TRUE to enable UDP encapsulation for NAT traversal */
        bool encap;
-       /** no (disabled), yes (enabled), auto (enabled if supported) */
+       /** HW offload mode */
        hw_offload_t hw_offload;
        /** Mark the SA should apply to packets after processing */
        mark_t mark;
@@ -180,6 +180,8 @@ struct kernel_ipsec_manage_policy_t {
        policy_priority_t prio;
        /** Manually-set priority (automatic if set to 0) */
        uint32_t manual_prio;
+       /** HW offload mode */
+       hw_offload_t hw_offload;
        /** Source address of the SA(s) tied to this policy */
        host_t *src;
        /** Destination address of the SA(s) tied to this policy */