ike-sa: Remove unused counter for pending MOBIKE updates
authorTobias Brunner <tobias@strongswan.org>
Mon, 29 Jan 2018 13:30:35 +0000 (14:30 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 9 Feb 2018 10:21:02 +0000 (11:21 +0100)
src/libcharon/sa/ike_sa.c
src/libcharon/sa/ike_sa.h

index 3b08252..e1f4ec9 100644 (file)
@@ -232,11 +232,6 @@ struct private_ike_sa_t {
        chunk_t nat_detection_dest;
 
        /**
-        * number pending UPDATE_SA_ADDRESS (MOBIKE)
-        */
-       uint32_t pending_updates;
-
-       /**
         * NAT keep alive interval
         */
        uint32_t keepalive_interval;
@@ -1055,18 +1050,6 @@ METHOD(ike_sa_t, has_mapping_changed, bool,
        return TRUE;
 }
 
-METHOD(ike_sa_t, set_pending_updates, void,
-       private_ike_sa_t *this, uint32_t updates)
-{
-       this->pending_updates = updates;
-}
-
-METHOD(ike_sa_t, get_pending_updates, uint32_t,
-       private_ike_sa_t *this)
-{
-       return this->pending_updates;
-}
-
 METHOD(ike_sa_t, float_ports, void,
           private_ike_sa_t *this)
 {
@@ -2973,8 +2956,6 @@ ike_sa_t * ike_sa_create(ike_sa_id_t *ike_sa_id, bool initiator,
                        .supports_extension = _supports_extension,
                        .set_condition = _set_condition,
                        .has_condition = _has_condition,
-                       .set_pending_updates = _set_pending_updates,
-                       .get_pending_updates = _get_pending_updates,
                        .create_peer_address_enumerator = _create_peer_address_enumerator,
                        .add_peer_address = _add_peer_address,
                        .clear_peer_addresses = _clear_peer_addresses,
index fbc3672..2429fae 100644 (file)
@@ -646,20 +646,6 @@ struct ike_sa_t {
         */
        bool (*has_condition) (ike_sa_t *this, ike_condition_t condition);
 
-       /**
-        * Get the number of queued MOBIKE address updates.
-        *
-        * @return                              number of pending updates
-        */
-       uint32_t (*get_pending_updates)(ike_sa_t *this);
-
-       /**
-        * Set the number of queued MOBIKE address updates.
-        *
-        * @param updates               number of pending updates
-        */
-       void (*set_pending_updates)(ike_sa_t *this, uint32_t updates);
-
 #ifdef ME
        /**
         * Activate mediation server functionality for this IKE_SA.