HomeFreeBSD

Add sadb_x_sa2 extension to SADB_ACQUIRE requests.

Description

Add sadb_x_sa2 extension to SADB_ACQUIRE requests.

SADB_ACQUIRE requests are send by kernel, when security policy doesn't
have corresponding security association for outbound packet. IKE daemon
usually registers its handler for such messages and when the kernel asks
for SA it can handle this request. Now such requests will contain
additional fields that can help IKE daemon to create SA. And IKE now
can create SAs using only information from SADB_ACQUIRE request, this
is useful when many if_ipsec(4) interfaces are in use and IKE doesn track
security policies that was installed by kernel.

Obtained from: Yandex LLC
MFC after: 3 weeks
Sponsored by: Yandex LLC

Details

Provenance
aeAuthored on
Parents
rS339532: Fix exiting an epoch(9) we never entered. May happen only with MAC.
Branches
Unknown
Tags
Unknown