CVSROOT:        /cvs
Module name:    src
Changes by:     m...@cvs.openbsd.org    2025/05/12 11:20:09

Modified files:
        sys/net        : pfkeyv2.c 
        sys/netinet    : ipsec_input.c 

Log message:
Move bunch of `ipsecctl_vars' variables out of netlock.

The `ipsec_soft_allocations', `ipsec_exp_allocations',
`ipsec_soft_bytes', `ipsec_exp_bytes', `ipsec_soft_timeout',
`ipsec_exp_timeout', `ipsec_soft_first_use' and `ipsec_exp_first_use'
are local to pfkeyv2_acquire(). They are loaded together during
`sadb_comb' initialization, so make sense to unlock them together too.

It looks reasonable to drop 'ipsec_' prefix for local variables,
otherwise the names are too long, and I think this should made code
reading worse. For consistency I dropped 'ipsec_' prefix for
`ipsec_def_*_local' too.

ok bluhm

Reply via email to