HomeFreeBSD

Move ipsec_setspidx_inpcb() into ipsec_pcb.c.

Description

Move ipsec_setspidx_inpcb() into ipsec_pcb.c.

Use it to initialize secpolicyindex in ipsec_copy_pcbpolicy().
If listening socket has PCB security policy, it will be inherited to
new connection and secpolicyindex will exactly match new TCP session.

Details

Provenance
aeAuthored on
Parents
rS311099: Call ipsec_copy_pcbpolicy() when inp_inc will be initialized.
Branches
Unknown
Tags
Unknown