Page MenuHomeFreeBSD

netipsec: Fix V_spd_size updates
ClosedPublic

Authored by markj on Tue, Oct 6, 7:01 PM.
Tags
None
Referenced Files
F175130090: D60418.id188897.diff
Thu, Oct 8, 12:21 PM
Unknown Object (File)
Wed, Oct 7, 7:59 PM
Unknown Object (File)
Wed, Oct 7, 5:48 AM
Unknown Object (File)
Wed, Oct 7, 3:41 AM
Unknown Object (File)
Wed, Oct 7, 2:25 AM
Unknown Object (File)
Wed, Oct 7, 2:20 AM
Unknown Object (File)
Wed, Oct 7, 1:44 AM

Details

Summary

key_unregister_ifnet() was erroneously decrementing the size of the
global security policy database, V_sptree, but it doesn't modify that
database. V_sptree_ifnet is for policies attached to if_ipsec
interfaces. Note also that key_register_ifnet() was not incrementing
the counter.

Move the definition of V_spd_size up to the rest of the SPD definitions.
Its inclusion among the SPD cache definitions was confusing to me.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable