HomeFreeBSD

Add address family independed function ipsec_checkpolicy().

Description

Add address family independed function ipsec_checkpolicy().

It takes security policy as argument and returns policy decision:

NULL and *error == 0 means "no IPsec processig required";
NULL and *error != -EINVAL means "packet should be discarded";
not NULL means "packet should be handled by IPsec".

Details

Provenance
aeAuthored on
Parents
rS308882: Add ipsec4_getpolicy() function.
Branches
Unknown
Tags
Unknown