New commits:
commit 7320c991b01fe23d4080157c1f898194f8a55260
Author: Andrew Cagney <[email protected]>
Date: Tue Jun 29 20:01:30 2021 -0400
kernel: use .tunnel and .level==0 to determine the tunnel bit
In tunnel mode, both state and policy only need the "tunnel" bit
(.mode) set on the "inner-most" state / policy; while for transport
mode all states need selectors.
Replace struct kernel_sa fields .mode and .add_selectors, and the
variable encap_oneshot with the struct kernel_sa fields .tunnel and
.level. Use struct encap_rules to determine tunnel mode.
Also merge "inner_proto" and "inner_esatype" into struct encap_rules's
new .inner_proto field; and use encap_rules to specify raw_policy()'s
encap, sa_proto and esatype parameters (yes, for these code paths
sa_proto and esatype are redundant).
_______________________________________________
Swan-commit mailing list
[email protected]
https://lists.libreswan.org/mailman/listinfo/swan-commit