ikev2: Migrate MOBIKE additional peer addresses to new SA after IKE_SA rekeying
This commit is contained in:
@@ -2260,6 +2260,12 @@ METHOD(ike_sa_t, inherit_post, void,
|
|||||||
array_insert_create(&this->other_vips, ARRAY_TAIL, vip);
|
array_insert_create(&this->other_vips, ARRAY_TAIL, vip);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* MOBIKE additional addresses */
|
||||||
|
while (array_remove(other->peer_addresses, ARRAY_HEAD, &vip))
|
||||||
|
{
|
||||||
|
array_insert_create(&this->peer_addresses, ARRAY_TAIL, vip);
|
||||||
|
}
|
||||||
|
|
||||||
/* authentication information */
|
/* authentication information */
|
||||||
enumerator = array_create_enumerator(other->my_auths);
|
enumerator = array_create_enumerator(other->my_auths);
|
||||||
while (enumerator->enumerate(enumerator, &cfg))
|
while (enumerator->enumerate(enumerator, &cfg))
|
||||||
|
|||||||
Reference in New Issue
Block a user