ike-mobike: Add method to enable path probing
authorTobias Brunner <tobias@strongswan.org>
Mon, 28 Jul 2014 10:24:33 +0000 (12:24 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 12 Sep 2014 08:29:36 +0000 (10:29 +0200)
src/libcharon/sa/ikev2/tasks/ike_mobike.c
src/libcharon/sa/ikev2/tasks/ike_mobike.h

index 8e1efb5..7d26de1 100644 (file)
@@ -630,6 +630,12 @@ METHOD(ike_mobike_t, is_probing, bool,
        return this->check;
 }
 
+METHOD(ike_mobike_t, enable_probing, void,
+       private_ike_mobike_t *this)
+{
+       this->check = TRUE;
+}
+
 METHOD(task_t, get_type, task_type_t,
           private_ike_mobike_t *this)
 {
@@ -687,6 +693,7 @@ ike_mobike_t *ike_mobike_create(ike_sa_t *ike_sa, bool initiator)
                        .dpd = _dpd,
                        .transmit = _transmit,
                        .is_probing = _is_probing,
+                       .enable_probing = _enable_probing,
                },
                .ike_sa = ike_sa,
                .initiator = initiator,
index b145a9a..2946f5e 100644 (file)
@@ -79,6 +79,11 @@ struct ike_mobike_t {
         * @return                              TRUE if task is probing
         */
        bool (*is_probing)(ike_mobike_t *this);
+
+       /**
+        * Enable probing for routability.
+        */
+       void (*enable_probing)(ike_mobike_t *this);
 };
 
 /**