The combination probably doesn't make much sense.
The OUTPUT rules would definitely only be required once, while the INPUT
and PREROUTING rules list individual SPIs and/or UDP ports, which would
be necessary for all SAs.
By the way, the rules in PREROUTING might actually not be necessary
anymore if the set_mark_in option was used for such SAs.
return child_sa->get_mark(child_sa, TRUE).value &&
child_sa->get_mark(child_sa, FALSE).value &&
child_sa->get_mode(child_sa) == MODE_TRANSPORT &&
- child_sa->get_protocol(child_sa) == PROTO_ESP;
+ child_sa->get_protocol(child_sa) == PROTO_ESP &&
+ !child_sa->use_per_cpu(child_sa);
}
METHOD(listener_t, child_updown, bool,