Unlock igmp_sysctl(), pfsync_sysctl() and rip6_sysctl(). Each of them is
authormvs <mvs@openbsd.org>
Tue, 20 Aug 2024 07:46:27 +0000 (07:46 +0000)
committermvs <mvs@openbsd.org>
Tue, 20 Aug 2024 07:46:27 +0000 (07:46 +0000)
commit572e76f61b959e880cae926d862d7e8a60f1019b
tree66405dc2732462f02261c80796b2ea95c8b54d01
parent19686eace8335789f669ab42af1dd151660ec9a8
Unlock igmp_sysctl(), pfsync_sysctl() and rip6_sysctl(). Each of them is
the only IGMPCTL_STATS, PFSYNCCTL_STATS and RIPV6CTL_STATS per-CPU
counters.

sysctl_rdstruct() has "newp != NULL" check within and also returns
EPERM, no need for redundant check in igmp_sysctl().

ok bluhm
sys/netinet/igmp.c
sys/netinet/in_proto.c
sys/netinet6/in6_proto.c