aboutsummaryrefslogtreecommitdiffstats
path: root/src/libhydra/kernel/kernel_interface.h
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2010-08-03 11:49:28 +0200
committerTobias Brunner <tobias@strongswan.org>2010-09-02 19:04:21 +0200
commit34cf6def835e9df3b852718845cfbf8ba61efa0f (patch)
treea875b242bea6516105dae578d81ea0fe041f6c82 /src/libhydra/kernel/kernel_interface.h
parentc3f4d68f0dae9844a80fec65b50670c1a0f53802 (diff)
downloadstrongswan-34cf6def835e9df3b852718845cfbf8ba61efa0f.tar.bz2
strongswan-34cf6def835e9df3b852718845cfbf8ba61efa0f.tar.xz
Fixing installation of trap policies (SPI=0) in kernel interface.
Diffstat (limited to 'src/libhydra/kernel/kernel_interface.h')
-rw-r--r--src/libhydra/kernel/kernel_interface.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/libhydra/kernel/kernel_interface.h b/src/libhydra/kernel/kernel_interface.h
index fdf320be7..8b0c7a296 100644
--- a/src/libhydra/kernel/kernel_interface.h
+++ b/src/libhydra/kernel/kernel_interface.h
@@ -184,13 +184,8 @@ struct kernel_interface_t {
* @param dst_ts traffic selector to match traffic dest
* @param direction direction of traffic, POLICY_(IN|OUT|FWD)
* @param type type of policy, POLICY_(IPSEC|PASS|DROP)
- * @param spi SPI of optional ESP SA
- * @param ah_spi SPI of optional AH SA
- * @param reqid unique ID of an SA to use to enforce policy
+ * @param sa details about the SA(s) tied to this policy
* @param mark mark for this policy
- * @param mode mode of SA (tunnel, transport)
- * @param ipcomp the IPComp transform used
- * @param cpi CPI for IPComp
* @param routed TRUE, if this policy is routed in the kernel
* @return SUCCESS if operation completed
*/
@@ -199,9 +194,7 @@ struct kernel_interface_t {
traffic_selector_t *src_ts,
traffic_selector_t *dst_ts,
policy_dir_t direction, policy_type_t type,
- u_int32_t spi, u_int32_t ah_spi, u_int32_t reqid,
- mark_t mark, ipsec_mode_t mode, u_int16_t ipcomp,
- u_int16_t cpi, bool routed);
+ ipsec_sa_cfg_t *sa, mark_t mark, bool routed);
/**
* Query the use time of a policy.