aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/threads/kernel_interface.h
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2006-06-23 14:02:30 +0000
committerMartin Willi <martin@strongswan.org>2006-06-23 14:02:30 +0000
commit2f89902d071d76f8226939193c692badbd86e251 (patch)
tree2d3621e375b02f778c993e2fee23e5cca04e7198 /src/charon/threads/kernel_interface.h
parent2891590b054da6bedcfdeb3a94cfe6416a1953b9 (diff)
downloadstrongswan-2f89902d071d76f8226939193c692badbd86e251.tar.bz2
strongswan-2f89902d071d76f8226939193c692badbd86e251.tar.xz
applied new changes from NATT team
DPD only done when no IPsec and IKE traffic processed minor changes here and there
Diffstat (limited to 'src/charon/threads/kernel_interface.h')
-rw-r--r--src/charon/threads/kernel_interface.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/charon/threads/kernel_interface.h b/src/charon/threads/kernel_interface.h
index 9aa2d941a..c427e2a5b 100644
--- a/src/charon/threads/kernel_interface.h
+++ b/src/charon/threads/kernel_interface.h
@@ -118,6 +118,7 @@ struct kernel_interface_t {
prf_plus_t *prf_plus,
natt_conf_t *natt,
bool replace);
+
/**
* @brief Update the hosts on an installed SA. Encapsulation ports are also updated.
*
@@ -190,6 +191,29 @@ struct kernel_interface_t {
int direction, int upper_proto,
protocol_id_t protocol,
u_int32_t reqid);
+ /**
+ * @brief Query the use time of a policy
+ *
+ * @param this calling object
+ * @param me address of local peer
+ * @param other address of remote peer
+ * @param src src address of traffic this policy applies
+ * @param dst dest address of traffic this policy applies
+ * @param src_hostbits subnetmask to use for src address
+ * @param dst_hostbits subnetmask to use for dst address
+ * @param direction direction of traffic, XFRM_POLICY_OUT, XFRM_POLICY_IN, XFRM_POLICY_FWD
+ * @param upper_proto upper layer protocol of traffic for this policy (TCP, UDP, ICMP, ...)
+ * @param use_time the time of this policy's last use
+ * @return
+ * - SUCCESS
+ * - FAILED if kernel comm failed
+ */
+ status_t (*query_policy) (kernel_interface_t *this,
+ host_t *me, host_t *other,
+ host_t *src, host_t *dst,
+ u_int8_t src_hostbits, u_int8_t dst_hostbits,
+ int direction, int upper_proto,
+ time_t *use_time);
/**
* @brief Remove a policy from the SPD.