p->ikev1_state.active_ph1cnt, p->ikev1_state.active_ph2cnt);
continue;
}
-
+
// Skip if the spi doesn't match
if (optionalIndex != NULL && ike_session_getph1byindex(p, optionalIndex) == NULL) {
continue;
}
if (iph2->phase2_type != PHASE2_TYPE_SA)
return;
- if (iph2->version == ISAKMP_VERSION_NUMBER_IKEV2) {
- return; // for now
- }
+
// exit early if we already detected cisco-ipsec
if (iph2->parent_session->is_cisco_ipsec) {
return;
/*
* if we are responder, then we should wait until the server sends a delete notification.
*/
- if ((new_iph1->version == ISAKMP_VERSION_NUMBER_IKEV2 || session->is_client) &&
+ if (session->is_client &&
new_iph1->side == RESPONDER) {
return;
}
/*
* if we are responder, then we should wait until the server sends a delete notification.
*/
- if ((new_iph1->version == ISAKMP_VERSION_NUMBER_IKEV2 || session->is_client) &&
+ if (session->is_client &&
new_iph1->side == RESPONDER) {
return;
}