fixed dpd for responder
[strongswan.git] / src / charon / sa / ike_sa.c
index 2a8633b..8c181b3 100644 (file)
@@ -300,6 +300,14 @@ static void set_name(private_ike_sa_t *this, char* name)
 }
 
 /**
+ * Implementation of ike_sa_t.set_dpd_delay.
+ */
+static void set_dpd_delay(private_ike_sa_t *this, u_int32_t delay)
+{
+       this->dpd_delay = delay;
+}
+
+/**
  * Implementation of ike_sa_t.get_my_host.
  */
 static host_t *get_my_host(private_ike_sa_t *this)
@@ -2050,6 +2058,7 @@ ike_sa_t * ike_sa_create(ike_sa_id_t *ike_sa_id)
        this->public.enable_natt = (void(*)(ike_sa_t*, bool)) enable_natt;
        this->public.is_natt_enabled = (bool(*)(ike_sa_t*)) is_natt_enabled;
        this->public.set_lifetimes = (void(*)(ike_sa_t*,u_int32_t,u_int32_t))set_lifetimes;
+       this->public.set_dpd_delay = (void(*)(ike_sa_t*,u_int32_t))set_dpd_delay;
        this->public.rekey = (status_t(*)(ike_sa_t*))rekey;
        this->public.get_rekeying_transaction = (void*(*)(ike_sa_t*))get_rekeying_transaction;
        this->public.set_rekeying_transaction = (void(*)(ike_sa_t*,void*))set_rekeying_transaction;