CVSROOT:        /cvs
Module name:    src
Changes by:     bl...@cvs.openbsd.org   2021/04/30 07:52:48

Modified files:
        sys/kern       : kern_sysctl.c kern_tc.c sysv_sem.c 
        sys/netinet    : ip_input.c tcp_usrreq.c 
        sys/netinet6   : ip6_input.c 
        sys/sys        : sysctl.h 

Log message:
Rearrange the implementation of bounded sysctl.  The primitive
functions are sysctl_int() and sysctl_rdint().  This brings us back
the 4.4BSD implementation.  Then sysctl_int_bounded() builds the
magic for range checks on top.  sysctl_bounded_arr() is a wrapper
around it to support multiple variables.
Introduce macros that describe the meaning of the magic boundary
values.  Use these macros in obvious places.
input and OK gnezdo@ mvs@

Reply via email to