kernel-interface: Add support to change the reqid in update_sa()

This commit is contained in:
Tobias Brunner
2022-04-14 18:42:01 +02:00
parent 1f060357f4
commit 1b3af3e37d
4 changed files with 17 additions and 0 deletions
@@ -2280,6 +2280,10 @@ METHOD(kernel_ipsec_t, update_sa, status_t,
key.dst = entry->osa.dst;
this->osas->remove(this->osas, &key);
if (data->new_reqid)
{
entry->reqid = data->new_reqid;
}
entry->local->destroy(entry->local);
entry->remote->destroy(entry->remote);
entry->local = data->new_dst->clone(data->new_dst);