ikev2: Add a new state to track rekeyed IKE_SAs
This makes handling such IKE_SAs more specifically compared to keeping them in state IKE_CONNECTING or IKE_ESTABLISHED (which we did when we lost a collision - even triggering the ike_updown event), or using IKE_REKEYING for them, which would also be ambiguous. For instance, we can now reject anything but DELETES for such SAs.
This commit is contained in:
@@ -51,7 +51,7 @@ START_TEST(test_regular)
|
||||
assert_hook_rekey(ike_rekey, 1, 3);
|
||||
assert_no_notify(IN, REKEY_SA);
|
||||
exchange_test_helper->process_message(exchange_test_helper, b, NULL);
|
||||
assert_ike_sa_state(b, IKE_REKEYING);
|
||||
assert_ike_sa_state(b, IKE_REKEYED);
|
||||
assert_child_sa_count(b, 0);
|
||||
new_sa = assert_ike_sa_checkout(3, 4, FALSE);
|
||||
assert_ike_sa_state(new_sa, IKE_ESTABLISHED);
|
||||
|
||||
Reference in New Issue
Block a user