HomeFreeBSD

Remove check for presence of PACKET_TAG_IPSEC_PENDING_TDB and

Description

Remove check for presence of PACKET_TAG_IPSEC_PENDING_TDB and
PACKET_TAG_IPSEC_OUT_CRYPTO_NEEDED mbuf tags. They aren't used in FreeBSD.

Instead check presence of PACKET_TAG_IPSEC_OUT_DONE mbuf tag. If it
is found, bypass security policy lookup as described in the comment.

PACKET_TAG_IPSEC_OUT_DONE tag added to mbuf when IPSEC code finishes
ESP/AH processing. Since it was already finished, this means the security
policy placed in the tdb_ident was already checked. And there is no reason
to check it again here.

Obtained from: Yandex LLC
Sponsored by: Yandex LLC

Details

Provenance
aeAuthored on
Parents
rS275701: Make sure callbacks being freed are not pending when the
Branches
Unknown
Tags
Unknown

Event Timeline