forecast: Ignore per-CPU CHILD_SAs

Not sure if this combination does make sense as the plugin itself would
be a major bottleneck.

Similar to the connmark plugin, PREROUTING rules list SPIs or UDP ports,
which would be necessary for all SAs while the OUTPUT rules would only be
required once.
This commit is contained in:
Tobias Brunner
2025-05-28 16:35:26 +02:00
parent 5faf884285
commit 17f2188756
@@ -500,7 +500,8 @@ static bool commit_handle(struct iptc_handle *ipth)
static bool handle_sa(child_sa_t *child_sa)
{
return child_sa->get_mark(child_sa, TRUE).value &&
child_sa->get_mark(child_sa, FALSE).value;
child_sa->get_mark(child_sa, FALSE).value &&
!child_sa->use_per_cpu(child_sa);
}
METHOD(listener_t, child_updown, bool,