[Swan-commit] Changes to ref refs/heads/main
Andrew Cagney
cagney at vault.libreswan.fi
Wed Jun 30 00:19:51 UTC 2021
New commits:
commit 7320c991b01fe23d4080157c1f898194f8a55260
Author: Andrew Cagney <cagney at gnu.org>
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).
More information about the Swan-commit
mailing list