Remove policies in kernel interfaces based on their priority.
[strongswan.git] / src / libcharon / plugins / load_tester / load_tester_ipsec.c
index ef9d7f9..f76f298 100644 (file)
@@ -54,8 +54,8 @@ METHOD(kernel_ipsec_t, add_sa, status_t,
           u_int32_t spi, u_int8_t protocol, u_int32_t reqid, mark_t mark,
           u_int32_t tfc, lifetime_cfg_t *lifetime, u_int16_t enc_alg, chunk_t enc_key,
           u_int16_t int_alg, chunk_t int_key, ipsec_mode_t mode, u_int16_t ipcomp,
-          u_int16_t cpi, bool encap, bool inbound, traffic_selector_t *src_ts,
-          traffic_selector_t *dst_ts)
+          u_int16_t cpi, bool encap, bool esn, bool inbound,
+          traffic_selector_t *src_ts, traffic_selector_t *dst_ts)
 {
        return SUCCESS;
 }
@@ -86,7 +86,7 @@ METHOD(kernel_ipsec_t, add_policy, status_t,
           private_load_tester_ipsec_t *this, host_t *src, host_t *dst,
           traffic_selector_t *src_ts, traffic_selector_t *dst_ts,
           policy_dir_t direction, policy_type_t type, ipsec_sa_cfg_t *sa,
-          mark_t mark, bool routed)
+          mark_t mark, policy_priority_t priority)
 {
        return SUCCESS;
 }
@@ -96,14 +96,14 @@ METHOD(kernel_ipsec_t, query_policy, status_t,
           traffic_selector_t *dst_ts, policy_dir_t direction, mark_t mark,
           u_int32_t *use_time)
 {
-       *use_time = time_monotonic(NULL);
+       *use_time = 1;
        return SUCCESS;
 }
 
 METHOD(kernel_ipsec_t, del_policy, status_t,
           private_load_tester_ipsec_t *this, traffic_selector_t *src_ts,
-          traffic_selector_t *dst_ts, policy_dir_t direction, mark_t mark,
-          bool unrouted)
+          traffic_selector_t *dst_ts, policy_dir_t direction, u_int32_t reqid,
+          mark_t mark, policy_priority_t priority)
 {
        return SUCCESS;
 }