child-sa: Replace reqid based marks by "unique" marks
As we now use the same reqid for multiple CHILD_SAs with the same selectors, having marks based on the reqid makes not that much sense anymore. Instead we use unique marks that use a custom identifier. This identifier is reused during rekeying, keeping the marks constant for any rule relying on it (for example installed by updown). This also simplifies handling of reqid allocation, as we do not have to query the marks that is not yet assigned for an unknown reqid.
This commit is contained in:
@@ -718,7 +718,8 @@ static void process_child_add(private_ha_dispatcher_t *this,
|
||||
|
||||
child_sa = child_sa_create(ike_sa->get_my_host(ike_sa),
|
||||
ike_sa->get_other_host(ike_sa), config, 0,
|
||||
ike_sa->has_condition(ike_sa, COND_NAT_ANY));
|
||||
ike_sa->has_condition(ike_sa, COND_NAT_ANY),
|
||||
0, 0);
|
||||
child_sa->set_mode(child_sa, mode);
|
||||
child_sa->set_protocol(child_sa, PROTO_ESP);
|
||||
child_sa->set_ipcomp(child_sa, ipcomp);
|
||||
|
||||
Reference in New Issue
Block a user