aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/threads/kernel_interface.h
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2006-12-21 14:35:17 +0000
committerMartin Willi <martin@strongswan.org>2006-12-21 14:35:17 +0000
commit7652be891c5d3b1cd305d3e32bce64f5e67134c7 (patch)
tree5def6569a7d5c8f4305a7b78779d7befa540ea68 /src/charon/threads/kernel_interface.h
parent38ab8048f54ce449339c317310e3e73a7b7f53d0 (diff)
downloadstrongswan-7652be891c5d3b1cd305d3e32bce64f5e67134c7.tar.bz2
strongswan-7652be891c5d3b1cd305d3e32bce64f5e67134c7.tar.xz
added support for transport mode and (experimental!) BEET mode
support for the type=transport/tunnel parameter in charon
Diffstat (limited to 'src/charon/threads/kernel_interface.h')
-rw-r--r--src/charon/threads/kernel_interface.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/charon/threads/kernel_interface.h b/src/charon/threads/kernel_interface.h
index 2655745a8..991d8e17c 100644
--- a/src/charon/threads/kernel_interface.h
+++ b/src/charon/threads/kernel_interface.h
@@ -118,6 +118,7 @@ struct kernel_interface_t {
* @param int_alg Algorithm to use for integrity protection
* @param prf_plus PRF to derive keys from
* @param natt NAT-T Configuration, or NULL of no NAT-T used
+ * @param mode mode of the SA (tunnel, transport)
* @param replace Should an already installed SA be updated?
* @return
* - SUCCESS
@@ -128,7 +129,8 @@ struct kernel_interface_t {
protocol_id_t protocol, u_int32_t reqid,
u_int64_t expire_soft, u_int64_t expire_hard,
algorithm_t *enc_alg, algorithm_t *int_alg,
- prf_plus_t *prf_plus, natt_conf_t *natt, bool update);
+ prf_plus_t *prf_plus, natt_conf_t *natt,
+ mode_t mode, bool update);
/**
* @brief Update the hosts on an installed SA.
@@ -206,6 +208,7 @@ struct kernel_interface_t {
* @param protocol protocol to use to protect traffic (AH/ESP)
* @param reqid uniqe ID of an SA to use to enforce policy
* @param high_prio if TRUE, uses a higher priority than any with FALSE
+ * @param mode mode of SA (tunnel, transport)
* @param update update an existing policy, if TRUE
* @return
* - SUCCESS
@@ -216,7 +219,8 @@ struct kernel_interface_t {
traffic_selector_t *src_ts,
traffic_selector_t *dst_ts,
policy_dir_t direction, protocol_id_t protocol,
- u_int32_t reqid, bool high_prio, bool update);
+ u_int32_t reqid, bool high_prio,
+ mode_t mode, bool update);
/**
* @brief Query the use time of a policy.