HomeFreeBSD

Update key_newsah() and key_delsah() to reflect changes in SADB.

Description

Update key_newsah() and key_delsah() to reflect changes in SADB.

Now SA head has refcount. Properly initialize refcnt and both
savtree_larval and savtree_alive. Add key_freesah() function to
release refcount and call key_delsah() for last reference.

Details

Provenance
aeAuthored on
Parents
rS308992: Use key_sp2mbuf() in key_spdexpire(). Also add debug code.
Branches
Unknown
Tags
Unknown