Page MenuHomeFreeBSD

netipsec: Fix V_spd_size updates
ClosedPublic

Authored by markj on Tue, Oct 6, 7:01 PM.
Tags
None
Referenced Files
F175825195: D60418.id189081.diff
Tue, Oct 13, 4:40 PM
F175761813: D60418.id189081.diff
Tue, Oct 13, 3:34 AM
F175751273: D60418.id188897.diff
Tue, Oct 13, 1:05 AM
F175744742: D60418.id189081.diff
Mon, Oct 12, 11:46 PM
F175741701: D60418.id.diff
Mon, Oct 12, 11:08 PM
F175733524: D60418.diff
Mon, Oct 12, 9:32 PM
Unknown Object (File)
Mon, Oct 12, 4:57 PM
Unknown Object (File)
Mon, Oct 12, 7:50 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 77779
Build 74662: arc lint + arc unit