mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-03 00:00:24 -04:00
kernel-ipsec: Add HW offload mode to policies
This commit is contained in:
parent
056f3e7742
commit
af1eeda08b
@ -95,7 +95,7 @@ struct kernel_ipsec_add_sa_t {
|
|||||||
uint16_t cpi;
|
uint16_t cpi;
|
||||||
/** TRUE to enable UDP encapsulation for NAT traversal */
|
/** TRUE to enable UDP encapsulation for NAT traversal */
|
||||||
bool encap;
|
bool encap;
|
||||||
/** no (disabled), yes (enabled), auto (enabled if supported) */
|
/** HW offload mode */
|
||||||
hw_offload_t hw_offload;
|
hw_offload_t hw_offload;
|
||||||
/** Mark the SA should apply to packets after processing */
|
/** Mark the SA should apply to packets after processing */
|
||||||
mark_t mark;
|
mark_t mark;
|
||||||
@ -180,6 +180,8 @@ struct kernel_ipsec_manage_policy_t {
|
|||||||
policy_priority_t prio;
|
policy_priority_t prio;
|
||||||
/** Manually-set priority (automatic if set to 0) */
|
/** Manually-set priority (automatic if set to 0) */
|
||||||
uint32_t manual_prio;
|
uint32_t manual_prio;
|
||||||
|
/** HW offload mode */
|
||||||
|
hw_offload_t hw_offload;
|
||||||
/** Source address of the SA(s) tied to this policy */
|
/** Source address of the SA(s) tied to this policy */
|
||||||
host_t *src;
|
host_t *src;
|
||||||
/** Destination address of the SA(s) tied to this policy */
|
/** Destination address of the SA(s) tied to this policy */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user