[BACK]Return to sysctl.7 CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / share / man / man7

Annotation of src/share/man/man7/sysctl.7, Revision 1.105

1.105   ! pgoyette    1: .\"    $NetBSD: sysctl.7,v 1.104 2016/11/17 01:22:00 pgoyette Exp $
1.1       pavel       2: .\"
                      3: .\" Copyright (c) 1993
                      4: .\"    The Regents of the University of California.  All rights reserved.
                      5: .\"
                      6: .\" Redistribution and use in source and binary forms, with or without
                      7: .\" modification, are permitted provided that the following conditions
                      8: .\" are met:
                      9: .\" 1. Redistributions of source code must retain the above copyright
                     10: .\"    notice, this list of conditions and the following disclaimer.
                     11: .\" 2. Redistributions in binary form must reproduce the above copyright
                     12: .\"    notice, this list of conditions and the following disclaimer in the
                     13: .\"    documentation and/or other materials provided with the distribution.
                     14: .\" 3. Neither the name of the University nor the names of its contributors
                     15: .\"    may be used to endorse or promote products derived from this software
                     16: .\"    without specific prior written permission.
                     17: .\"
                     18: .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
                     19: .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
                     20: .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
                     21: .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
                     22: .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
                     23: .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
                     24: .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
                     25: .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
                     26: .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
                     27: .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
                     28: .\" SUCH DAMAGE.
                     29: .\"
                     30: .\"    @(#)sysctl.3    8.4 (Berkeley) 5/9/95
                     31: .\"
1.104     pgoyette   32: .Dd November 17, 2016
1.1       pavel      33: .Dt SYSCTL 7
                     34: .Os
                     35: .Sh NAME
                     36: .Nm sysctl
                     37: .Nd system information variables
                     38: .Sh DESCRIPTION
                     39: The
                     40: .Xr sysctl 3
                     41: library function and the
                     42: .Xr sysctl 8
                     43: utility are used to get and set values of system variables, maintained
                     44: by the kernel.
                     45: The variables are organized in a tree and identified by a sequence of
                     46: numbers, conventionally separated by dots with the topmost identifier
                     47: at the left side.
                     48: The numbers have corresponding text names.
                     49: The
                     50: .Xr sysctlnametomib 3
                     51: function or the
                     52: .Fl M
                     53: argument to the
                     54: .Xr sysctl 8
                     55: utility can be used to convert the text representation to the
                     56: numeric one.
                     57: .Pp
                     58: The individual sysctl variables are described below, both the textual
                     59: and numeric form where applicable.
                     60: The textual names can be used as argument to the
                     61: .Xr sysctl 8
                     62: utility and in the file
                     63: .Pa /etc/sysctl.conf .
                     64: The numeric names are usually defined as preprocessor constants and
                     65: are intended for use by programs.
                     66: Every such constant expands to one integer, which identifies the
                     67: sysctl variable relative to the upper level of the tree.
                     68: See the
                     69: .Xr sysctl 3
                     70: manual page for programming examples.
1.50      jruoho     71: .Ss Top level names
1.56      uwe        72: The top level names are defined with a
                     73: .Va CTL_
                     74: prefix in
1.33      joerg      75: .In sys/sysctl.h ,
1.1       pavel      76: and are as follows.
                     77: The next and subsequent levels down are found in the include files
                     78: listed here, and described in separate sections below.
1.56      uwe        79: .Bl -column "security" ".Dv CTL_SECURITY" ".In uvm/uvm_param.h" "High kernel limits"
                     80: .It Sy Name  Ta Sy Constant     Ta Sy Next level names Ta Sy Description
                     81: .It kern     Ta Dv CTL_KERN     Ta In sys/sysctl.h     Ta High kernel limits
                     82: .It vm       Ta Dv CTL_VM       Ta In uvm/uvm_param.h  Ta Virtual memory
                     83: .It vfs      Ta Dv CTL_VFS      Ta In sys/mount.h      Ta Filesystem
                     84: .It net      Ta Dv CTL_NET      Ta In sys/socket.h     Ta Networking
                     85: .It debug    Ta Dv CTL_DEBUG    Ta In sys/sysctl.h     Ta Debugging
                     86: .It hw       Ta Dv CTL_HW       Ta In sys/sysctl.h     Ta Generic CPU, I/O
                     87: .It machdep  Ta Dv CTL_MACHDEP  Ta In sys/sysctl.h     Ta Machine dependent
                     88: .It user     Ta Dv CTL_USER     Ta In sys/sysctl.h     Ta User-level
                     89: .It ddb      Ta Dv CTL_DDB      Ta In sys/sysctl.h     Ta In-kernel debugger
                     90: .It proc     Ta Dv CTL_PROC     Ta In sys/sysctl.h     Ta Per-process
                     91: .It vendor   Ta Dv CTL_VENDOR   Ta ?                   Ta Vendor specific
                     92: .It emul     Ta Dv CTL_EMUL     Ta In sys/sysctl.h     Ta Emulation settings
                     93: .It security Ta Dv CTL_SECURITY Ta In sys/sysctl.h     Ta Security settings
1.1       pavel      94: .El
1.50      jruoho     95: .Ss The debug.* subtree
1.1       pavel      96: The debugging variables vary from system to system.
                     97: A debugging variable may be added or deleted without need to recompile
                     98: .Nm
                     99: to know about it.
                    100: Each time it runs,
                    101: .Nm
                    102: gets the list of debugging variables from the kernel and
                    103: displays their current values.
                    104: The system defines twenty
1.56      uwe       105: .Vt ( struct ctldebug )
1.1       pavel     106: variables named
                    107: .Dv debug0
                    108: through
                    109: .Dv debug19 .
                    110: They are declared as separate variables so that they can be
                    111: individually initialized at the location of their associated variable.
                    112: The loader prevents multiple use of the same variable by issuing errors
                    113: if a variable is initialized in more than one place.
                    114: For example, to export the variable
1.56      uwe       115: .Va dospecialcheck
1.1       pavel     116: as a debugging variable, the following declaration would be used:
1.43      jruoho    117: .Pp
1.1       pavel     118: .Bd -literal -offset indent -compact
                    119: int dospecialcheck = 1;
                    120: struct ctldebug debug5 = { "dospecialcheck", \*[Am]dospecialcheck };
                    121: .Ed
                    122: .Pp
                    123: Note that the dynamic implementation of
                    124: .Nm
                    125: currently in use largely makes this particular
                    126: .Nm
                    127: interface obsolete.
                    128: See
                    129: .Xr sysctl 8
                    130: .\" and
                    131: .\" .Xr sysctl 9
                    132: for more information.
1.50      jruoho    133: .Ss The vfs.* subtree
1.1       pavel     134: A distinguished second level name,
1.91      kamil     135: .Li vfs.generic ( Dv VFS_GENERIC ) ,
1.57      wiz       136: is used to get general information about all file systems.
1.26      elad      137: It has the following third level identifiers:
1.56      uwe       138: .Bl -tag -width "123456"
1.91      kamil     139: .It Li vfs.generic.maxtypenum ( Dv VFS_MAXTYPENUM )
1.57      wiz       140: The highest valid file system type number.
1.91      kamil     141: .It Li vfs.generic.conf ( Dv VFS_CONF )
1.57      wiz       142: Returns configuration information about the file system type given as a fourth
1.26      elad      143: level identifier.
1.91      kamil     144: .It Li vfs.generic.usermount ( Dv VFS_USERMOUNT )
1.68      jym       145: Determines if non superuser mounts are allowed, defaults to
1.59      christos  146: .Dv 0 .
1.91      kamil     147: .It Li vfs.generic.magiclinks ( Dv VFS_MAGICLINKS )
1.59      christos  148: Controls if expansion of variables is going to be performed on pathnames
                    149: or not.
                    150: Defaults to no variable expansion,
                    151: .Dv 0 .
                    152: Variables are of the form
                    153: .Li @name
1.60      christos  154: and the variables supported are described in
                    155: .Xr symlink 7
                    156: under
                    157: .Dq "MAGIC SYMLINKS" .
1.26      elad      158: .El
                    159: .Pp
1.54      christos  160: A second level name for controlling the
                    161: .Xr wapbl 4
                    162: (Write Ahead Physical Block Logging file system journalling)
                    163: capabilities with the following third level identifiers:
1.56      uwe       164: .Bl -tag -width "123456"
                    165: .It Li vfs.wapbl.flush_disk_cache
1.55      wiz       166: Controls whether to attempt to flush the disk cache on each commit.
1.77      apb       167: It defaults to 1 and it should always be on to ensure integrity
                    168: of file system metadata in the event of a power loss.
1.54      christos  169: For slow disks, turning it off can improve performance.
1.56      uwe       170: .It Li vfs.wapbl.verbose_commit
1.55      wiz       171: For each transaction log commit, print the number of bytes written
                    172: and the time it took to commit as seconds.nanoseconds.
1.54      christos  173: .El
                    174: .Pp
1.57      wiz       175: The remaining second level identifiers are the file system names, identified
1.26      elad      176: by the type number returned by a
1.1       pavel     177: .Xr statvfs 2
                    178: call or from
1.27      wiz       179: .Li vfs.generic.conf .
1.56      uwe       180: .Pp
1.57      wiz       181: The third level identifiers available for each file system
1.1       pavel     182: are given in the header file that defines the mount
1.57      wiz       183: argument structure for that file system.
1.50      jruoho    184: .Ss The hw.* subtree
1.1       pavel     185: The string and integer information available for the
                    186: .Li hw
                    187: level is detailed below.
                    188: The changeable column shows whether a process with appropriate
                    189: privilege may change the value.
1.37      jruoho    190: .Bl -column "hw.machine_arch" "integer" "Changeable" -offset indent
1.92      wiz       191: .It Sy Second level name       Sy Type Sy Changeable
1.1       pavel     192: .It hw.alignbytes      integer no
                    193: .It hw.byteorder       integer no
                    194: .It hw.cnmagic string  yes
                    195: .It hw.disknames       string  no
                    196: .It hw.diskstats       struct  no
                    197: .It hw.machine string  no
                    198: .It hw.machine_arch    string  no
                    199: .It hw.model   string  no
                    200: .It hw.ncpu    integer no
1.84      njoly     201: .It hw.ncpuonline      integer no
1.1       pavel     202: .It hw.pagesize        integer no
                    203: .It hw.physmem integer no
                    204: .It hw.physmem64       quad    no
                    205: .It hw.usermem integer no
                    206: .It hw.usermem64       quad    no
                    207: .El
                    208: .Bl -tag -width "123456"
1.91      kamil     209: .It Li hw.alignbytes ( Dv HW_ALIGNBYTES )
1.1       pavel     210: Alignment constraint for all possible data types.
                    211: This shows the value
                    212: .Dv ALIGNBYTES
                    213: in
1.56      uwe       214: .In machine/param.h ,
1.1       pavel     215: at the kernel compilation time.
1.91      kamil     216: .It Li hw.byteorder ( Dv HW_BYTEORDER )
1.56      uwe       217: The byteorder (4321, or 1234).
1.91      kamil     218: .It Li hw.cnmagic ( Dv HW_CNMAGIC )
1.1       pavel     219: The console magic key sequence.
1.91      kamil     220: .It Li hw.disknames ( Dv HW_DISKNAMES )
1.1       pavel     221: The list of (space separated) disk device names on the system.
1.91      kamil     222: .It Li hw.iostatnames ( Dv HW_IOSTATNAMES )
1.1       pavel     223: A space separated list of devices that will have I/O statistics
                    224: collected on them.
1.91      kamil     225: .It Li hw.iostats ( Dv HW_IOSTATS )
1.1       pavel     226: Return statistical information on the NFS mounts, disk and tape
                    227: devices on the system.
                    228: An array of
1.56      uwe       229: .Vt struct io_sysctl
1.1       pavel     230: structures is returned,
                    231: whose size depends on the current number of such objects in the system.
                    232: The third level name is the size of the
1.56      uwe       233: .Vt struct io_sysctl .
1.1       pavel     234: The type of object can be determined by examining the
                    235: .Va type
                    236: element of
1.56      uwe       237: .Vt struct io_sysctl .
1.1       pavel     238: Which can be
                    239: .Dv IOSTAT_DISK
                    240: (disk drive),
                    241: .Dv IOSTAT_TAPE
                    242: (tape drive), or
                    243: .Dv IOSTAT_NFS
                    244: (NFS mount).
1.91      kamil     245: .It Li hw.machine ( Dv HW_MACHINE )
1.1       pavel     246: The machine class.
1.91      kamil     247: .It Li hw.machine_arch ( Dv HW_MACHINE_ARCH )
1.1       pavel     248: The machine CPU class.
1.91      kamil     249: .It Li hw.model ( Dv HW_MODEL )
1.1       pavel     250: The machine model.
1.91      kamil     251: .It Li hw.ncpu ( Dv HW_NCPU )
1.84      njoly     252: The number of CPUs configured.
1.91      kamil     253: .It Li hw.ncpuonline ( Dv HW_NCPUONLINE )
1.84      njoly     254: The number of CPUs online.
1.91      kamil     255: .It Li hw.pagesize ( Dv HW_PAGESIZE )
1.1       pavel     256: The software page size.
1.91      kamil     257: .It Li hw.physmem ( Dv HW_PHYSMEM )
1.1       pavel     258: The bytes of physical memory as a 32-bit integer.
1.91      kamil     259: .It Li hw.physmem64 ( Dv HW_PHYSMEM64 )
1.1       pavel     260: The bytes of physical memory as a 64-bit integer.
1.91      kamil     261: .It Li hw.usermem ( Dv HW_USERMEM )
1.1       pavel     262: The bytes of non-kernel memory as a 32-bit integer.
1.91      kamil     263: .It Li hw.usermem64 ( Dv HW_USERMEM64 )
1.1       pavel     264: The bytes of non-kernel memory as a 64-bit integer.
                    265: .El
1.50      jruoho    266: .Ss The kern.* subtree
1.43      jruoho    267: This subtree includes data generally related to the kernel.
1.1       pavel     268: The string and integer information available for the
                    269: .Li kern
                    270: level is detailed below.
                    271: The changeable column shows whether a process with appropriate
                    272: privilege may change the value.
1.43      jruoho    273: .Bl -column "kern.posix_reader_writer_locks" \
                    274: "struct kinfo_drivers" "not applicable"
1.92      wiz       275: .It Sy Second level name       Sy Type Sy Changeable
1.51      jruoho    276: .It kern.aio_listio_max        integer yes
                    277: .It kern.aio_max       integer yes
1.44      jruoho    278: .It kern.arandom       integer no
1.1       pavel     279: .It kern.argmax        integer no
1.39      jruoho    280: .It kern.boothowto     integer no
1.1       pavel     281: .It kern.boottime      struct timeval  no
1.85      apb       282: .It kern.buildinfo     string  no
1.39      jruoho    283: .\".It kern.bufq       node    not applicable
1.1       pavel     284: .It kern.ccpu  integer no
                    285: .It kern.clockrate     struct clockinfo        no
                    286: .It kern.consdev       integer no
1.39      jruoho    287: .It kern.coredump      node    not applicable
1.21      joerg     288: .It kern.cp_id struct  no
                    289: .It kern.cp_time       uint64_t[\|]    no
1.46      jruoho    290: .It kern.cryptodevallowsoft    integer yes
1.1       pavel     291: .It kern.defcorename   string  yes
1.38      jruoho    292: .It kern.detachall     integer yes
1.1       pavel     293: .It kern.domainname    string  yes
                    294: .It kern.drivers       struct kinfo_drivers    no
1.39      jruoho    295: .It kern.dump_on_panic integer yes
1.1       pavel     296: .It kern.file  struct file     no
                    297: .It kern.forkfsleep    integer yes
                    298: .It kern.fscale        integer no
                    299: .It kern.fsync integer no
1.21      joerg     300: .It kern.hardclock_ticks       integer no
1.1       pavel     301: .It kern.hostid        integer yes
                    302: .It kern.hostname      string  yes
1.21      joerg     303: .It kern.iov_max       integer no
1.39      jruoho    304: .It kern.ipc   node    not applicable
1.21      joerg     305: .It kern.job_control   integer no
1.1       pavel     306: .It kern.labeloffset   integer no
                    307: .It kern.labelsector   integer no
1.21      joerg     308: .It kern.login_name_max        integer no
1.1       pavel     309: .It kern.logsigexit    integer yes
1.21      joerg     310: .It kern.mapped_files  integer no
1.1       pavel     311: .It kern.maxfiles      integer yes
1.70      christos  312: .It kern.maxlwp        integer yes
1.1       pavel     313: .It kern.maxpartitions integer no
                    314: .It kern.maxphys       integer no
                    315: .It kern.maxproc       integer yes
                    316: .It kern.maxptys       integer yes
                    317: .It kern.maxvnodes     integer yes
1.102     pgoyette  318: .It kern.messages      integer yes
1.1       pavel     319: .It kern.mbuf  node    not applicable
                    320: .It kern.memlock       integer no
1.21      joerg     321: .It kern.memlock_range integer no
                    322: .It kern.memory_protection     integer no
1.42      jruoho    323: .It kern.module        node    not applicable
1.21      joerg     324: .It kern.monotonic_clock       integer no
1.49      jruoho    325: .It kern.mqueue        node    not applicable
1.1       pavel     326: .It kern.msgbuf        integer no
                    327: .It kern.msgbufsize    integer no
                    328: .It kern.ngroups       integer no
1.41      jruoho    329: .\".It kern.no_sa_support      integer yes
1.1       pavel     330: .It kern.ntptime       struct ntptimeval       no
                    331: .It kern.osrelease     string  no
1.39      jruoho    332: .It kern.osrevision    integer no
1.1       pavel     333: .It kern.ostype        string  no
1.41      jruoho    334: .\".It kern.panic_now  integer yes
1.1       pavel     335: .It kern.pipe  node    not applicable
1.82      joerg     336: .It kern.pool  struct pool_sysctl      no
1.39      jruoho    337: .\" .It kern.posix     node    not applicable
                    338: .It kern.posix1version integer no
1.51      jruoho    339: .It kern.posix_aio     integer no
1.21      joerg     340: .It kern.posix_barriers        integer no
                    341: .It kern.posix_reader_writer_locks     integer no
1.39      jruoho    342: .\".It kern.posix_sched        integer yes
1.21      joerg     343: .It kern.posix_semaphores      integer no
                    344: .It kern.posix_spin_locks      integer no
                    345: .It kern.posix_threads integer no
                    346: .It kern.posix_timers  integer no
1.1       pavel     347: .It kern.proc  struct kinfo_proc       no
                    348: .It kern.proc2 struct kinfo_proc2      no
1.21      joerg     349: .It kern.proc_args     string  no
1.39      jruoho    350: .It kern.profiling     node    not applicable
1.41      jruoho    351: .\".It kern.pset       node    not applicable
1.1       pavel     352: .It kern.rawpartition  integer no
1.21      joerg     353: .It kern.root_device   string  no
                    354: .It kern.root_partition        integer no
                    355: .It kern.rtc_offset    integer yes
                    356: .It kern.saved_ids     integer no
1.39      jruoho    357: .It kern.sbmax integer yes
1.41      jruoho    358: .\".It kern.sched      node    not applicable
1.1       pavel     359: .It kern.securelevel   integer raise only
1.39      jruoho    360: .It kern.somaxkva      integer yes
1.21      joerg     361: .It kern.synchronized_io       integer no
1.19      christos  362: .It kern.timecounter   node    not applicable
1.1       pavel     363: .It kern.timex struct  no
                    364: .It kern.tkstat        node    not applicable
1.66      christos  365: .It kern.tty   node    not applicable
1.1       pavel     366: .It kern.urandom       integer no
1.45      jruoho    367: .It kern.usercrypto    integer yes
                    368: .It kern.userasymcrypto        integer yes
1.39      jruoho    369: .It kern.veriexec      node    not applicable
1.1       pavel     370: .It kern.version       string  no
                    371: .It kern.vnode struct vnode    no
                    372: .El
                    373: .Bl -tag -width "123456"
1.51      jruoho    374: .It Li kern.aio_listio_max
                    375: The maximum number of asynchronous
                    376: .Tn I/O
                    377: operations in a single list I/O call.
                    378: Like with all variables related to
                    379: .Xr aio 3 ,
                    380: the variable may be created and removed dynamically
                    381: upon loading or unloading the corresponding kernel module.
                    382: .It Li kern.aio_max
                    383: The maximum number of asynchronous I/O operations.
1.44      jruoho    384: .It Li kern.arandom
                    385: This variable picks a random number each time it is queried.
                    386: The used random number generator
1.56      uwe       387: .Pf ( Tn RNG )
1.44      jruoho    388: is based on
                    389: .Xr arc4random 3 .
1.91      kamil     390: .It Li kern.argmax ( Dv KERN_ARGMAX )
1.1       pavel     391: The maximum bytes of argument to
                    392: .Xr execve 2 .
1.23      apb       393: .It Li kern.boothowto
                    394: Flags passed from the boot loader; see
                    395: .Xr reboot 2
                    396: for the meanings of the flags.
1.91      kamil     397: .It Li kern.boottime ( Dv KERN_BOOTTIME )
1.1       pavel     398: A
1.56      uwe       399: .Vt struct timeval
1.1       pavel     400: structure is returned.
                    401: This structure contains the time that the system was booted.
1.104     pgoyette  402: .It Li kern.bufq
                    403: This variable contains information on the
                    404: .Xr bufq 9
                    405: subsystem.
                    406: Currently, the only third level name implemented is
                    407: .Dv kern.bufq.strategies
                    408: which provides a list of buffer queue strategies currently available.
1.85      apb       409: .It Li kern.buildinfo
                    410: When the kernel is built, the build environment may optionally provide
                    411: arbitrary information to be stored in this variable.
1.91      kamil     412: .It Li kern.ccpu ( Dv KERN_CCPU )
1.1       pavel     413: The scheduler exponential decay value.
1.91      kamil     414: .It Li kern.clockrate ( Dv KERN_CLOCKRATE )
1.1       pavel     415: A
1.56      uwe       416: .Vt struct clockinfo
1.1       pavel     417: structure is returned.
                    418: This structure contains the clock, statistics clock and profiling clock
                    419: frequencies, the number of micro-seconds per hz tick, and the clock
                    420: skew rate.
1.36      jruoho    421: Refer to
                    422: .Xr hz 9
                    423: for additional details.
1.91      kamil     424: .It Li kern.consdev ( Dv KERN_CONSDEV )
1.1       pavel     425: Console device.
1.39      jruoho    426: .It Li kern.coredump
                    427: Settings related to set-id processes coredumps.
                    428: By default, set-id processes do not dump core in situations where
                    429: other processes would.
                    430: The settings in this node allows an administrator to change this
                    431: behavior.
                    432: .Pp
                    433: The third level name is
                    434: .Dv kern.coredump.setid
1.40      jruoho    435: and fourth level variables are described below.
                    436: .Bl -column "kern.coredump.setid.group" "integer" "Changeable" -offset indent
1.92      wiz       437: .It Sy Fourth level name       Sy Type Sy Changeable
1.40      jruoho    438: .It kern.coredump.setid.dump   integer yes
                    439: .It kern.coredump.setid.group  integer yes
                    440: .It kern.coredump.setid.mode   integer yes
                    441: .It kern.coredump.setid.owner  integer yes
                    442: .It kern.coredump.setid.path   string  yes
                    443: .El
1.39      jruoho    444: .Bl -tag -width "123456"
                    445: .It Li kern.coredump.setid.dump
                    446: If non-zero, set-id processes will dump core.
                    447: .It Li kern.coredump.setid.group
                    448: The group-id for the set-id processes' coredump.
                    449: .It Li kern.coredump.setid.mode
                    450: The mode for the set-id processes' coredump.
                    451: See
                    452: .Xr chmod 1 .
                    453: .It Li kern.coredump.setid.owner
                    454: The user-id that will be used as the owner of the set-id processes'
                    455: coredump.
                    456: .It Li kern.coredump.setid.path
                    457: The path to which set-id processes' coredumps will be saved to.
                    458: Same syntax as kern.defcorename.
                    459: .El
1.91      kamil     460: .It Li kern.cp_id ( Dv KERN_CP_ID )
1.1       pavel     461: Mapping of CPU number to CPU id.
1.91      kamil     462: .It Li kern.cp_time ( Dv KERN_CP_TIME )
1.56      uwe       463: Returns an array of
                    464: .Dv CPUSTATES
1.101     wiz       465: .Vt uint64_t Ns s .
1.1       pavel     466: This array contains the
                    467: number of clock ticks spent in different CPU states.
                    468: On multi-processor systems, the sum across all CPUs is returned unless
                    469: appropriate space is given for one data set for each CPU.
                    470: Data for a specific CPU can also be obtained by adding the number of the
                    471: CPU at the end of the MIB, enlarging it by one.
1.46      jruoho    472: .It Li kern.cryptodevallowsoft
                    473: This variable controls userland access to hardware versus software transforms
                    474: in the
                    475: .Xr crypto 4
                    476: system.
                    477: The available values are as follows:
1.47      wiz       478: .Bl -tag -width XX0 -offset indent
                    479: .It Dv \*[Lt] 0
1.46      jruoho    480: Always force userlevel requests to use software transforms.
                    481: .It Dv = 0
                    482: If present, use hardware and grant userlevel requests for
                    483: non-accelerated transforms (handling the latter in software).
1.47      wiz       484: .It Dv \*[Gt] 0
1.46      jruoho    485: Allow user requests only for transforms which are hardware-accelerated.
                    486: .El
1.91      kamil     487: .It Li kern.defcorename ( Dv KERN_DEFCORENAME )
1.1       pavel     488: Default template for the name of core dump files (see also
                    489: .Li proc.pid.corename
                    490: in the per-process variables
                    491: .Li proc.* ,
                    492: and
                    493: .Xr core 5
                    494: for format of this template).
                    495: The default value is
1.56      uwe       496: .Pa %n.core
1.1       pavel     497: and can be changed with the kernel configuration option
                    498: .Cd options DEFCORENAME
                    499: (see
                    500: .Xr options 4
                    501: ).
1.38      jruoho    502: .It Li kern.detachall
                    503: Detach all devices at shutdown.
1.91      kamil     504: .It Li kern.domainname ( Dv KERN_DOMAINNAME )
1.1       pavel     505: Get or set the YP domain name.
1.91      kamil     506: .It Li kern.drivers ( Dv KERN_DRIVERS )
1.1       pavel     507: Return an array of
1.56      uwe       508: .Vt struct kinfo_drivers
1.1       pavel     509: that contains the name and major device numbers of all the device drivers
                    510: in the current kernel.
                    511: The
                    512: .Va d_name
                    513: field is always a NUL terminated string.
                    514: The
                    515: .Va d_bmajor
                    516: field will be set to \-1 if the driver doesn't have a block device.
1.91      kamil     517: .It Li kern.dump_on_panic ( Dv KERN_DUMP_ON_PANIC )
1.41      jruoho    518: Perform a crash dump on system
                    519: .Xr panic 9 .
1.91      kamil     520: .It Li kern.file ( Dv KERN_FILE )
1.1       pavel     521: Return the entire file table.
                    522: The returned data consists of a single
1.56      uwe       523: .Vt struct filelist
1.1       pavel     524: followed by an array of
1.56      uwe       525: .Vt struct file ,
1.1       pavel     526: whose size depends on the current number of such objects in the system.
1.91      kamil     527: .It Li kern.forkfsleep ( Dv KERN_FORKFSLEEP )
1.1       pavel     528: If
                    529: .Xr fork 2
                    530: system call fails due to limit on number of processes (either
                    531: the global maxproc limit or user's one), wait for this many
                    532: milliseconds before returning
                    533: .Er EAGAIN
                    534: error to process.
                    535: Useful to keep heavily forking runaway processes in bay.
                    536: Default zero (no sleep).
                    537: Maximum is 20 seconds.
1.91      kamil     538: .It Li kern.fscale ( Dv KERN_FSCALE )
1.1       pavel     539: The kernel fixed-point scale factor.
1.91      kamil     540: .It Li kern.fsync ( Dv KERN_FSYNC )
1.58      wiz       541: Return 1 if the
                    542: .St -p1003.1b-93
                    543: File Synchronization Option is available
1.1       pavel     544: on this system,
1.56      uwe       545: otherwise\ 0.
1.91      kamil     546: .It Li kern.hardclock_ticks ( Dv KERN_HARDCLOCK_TICKS )
1.1       pavel     547: Returns the number of
                    548: .Xr hardclock 9
                    549: ticks.
1.105   ! pgoyette  550: .It Li kern.hist
        !           551: This variable contains kernel history data if the kernel was
        !           552: configured for any of the options
        !           553: .Dv UVHMIST ,
        !           554: .Dv USB_DEBUG ,
        !           555: .Dv BIOHIST ,
        !           556: or
        !           557: .Dv SCDEBUG .
        !           558: (See
        !           559: .Xr options 4
        !           560: for more details.)
        !           561: The third-level names correspond to each available history table.
        !           562: The values of the history tables are in an internal format, and can be
        !           563: decoded by the
        !           564: .Xr vmstat 1
        !           565: utility's
        !           566: .Dv -U
        !           567: and
        !           568: .Dv u
        !           569: options;
        !           570: the -l option can be used to see which tables are available.
1.91      kamil     571: .It Li kern.hostid ( Dv KERN_HOSTID )
1.39      jruoho    572: Get or set the host identifier.
                    573: This is aimed to replace the legacy
                    574: .Xr gethostid 3
                    575: and
                    576: .Xr sethostid 3
                    577: system calls.
1.91      kamil     578: .It Li kern.hostname ( Dv KERN_HOSTNAME )
1.39      jruoho    579: Get or set the
                    580: .Xr hostname 1 .
1.91      kamil     581: .It Li kern.iov_max ( Dv KERN_IOV_MAX )
1.1       pavel     582: Return the maximum number of
1.56      uwe       583: .Vt iovec
1.1       pavel     584: structures that a process has available for use with
                    585: .Xr preadv 2 ,
                    586: .Xr pwritev 2 ,
                    587: .Xr readv 2 ,
                    588: .Xr recvmsg 2 ,
                    589: .Xr sendmsg 2
                    590: and
                    591: .Xr writev 2 .
1.91      kamil     592: .It Li kern.ipc ( Dv KERN_SYSVIPC )
1.39      jruoho    593: Return information about the SysV IPC parameters.
                    594: The third level names for the ipc variables are detailed below.
                    595: .Bl -column "kern.ipc.shm_use_phys" "integer" "Changeable" -offset indent
1.92      wiz       596: .It Sy Third level name        Sy Type Sy Changeable
1.39      jruoho    597: .It kern.ipc.sysvmsg   integer no
                    598: .It kern.ipc.sysvsem   integer no
                    599: .It kern.ipc.sysvshm   integer no
                    600: .It kern.ipc.sysvipc_info      struct  no
                    601: .It kern.ipc.shmmax    integer yes
                    602: .It kern.ipc.shmmni    integer yes
                    603: .It kern.ipc.shmseg    integer yes
                    604: .It kern.ipc.shmmaxpgs integer yes
                    605: .It kern.ipc.shm_use_phys      integer yes
                    606: .It kern.ipc.msgmni    integer yes
                    607: .It kern.ipc.msgseg    integer yes
                    608: .It kern.ipc.semmni    integer yes
                    609: .It kern.ipc.semmns    integer yes
                    610: .It kern.ipc.semmnu    integer yes
                    611: .El
                    612: .Bl -tag -width "123456"
1.91      kamil     613: .It Li kern.ipc.sysvmsg ( Dv KERN_SYSVIPC_MSG )
1.39      jruoho    614: Returns 1 if System V style message queue functionality is available
                    615: on this system,
1.56      uwe       616: otherwise\ 0.
1.91      kamil     617: .It Li kern.ipc.sysvsem ( Dv KERN_SYSVIPC_SEM )
1.39      jruoho    618: Returns 1 if System V style semaphore functionality is available
                    619: on this system,
1.56      uwe       620: otherwise\ 0.
1.91      kamil     621: .It Li kern.ipc.sysvshm ( Dv KERN_SYSVIPC_SHM )
1.39      jruoho    622: Returns 1 if System V style share memory functionality is available
                    623: on this system,
1.56      uwe       624: otherwise\ 0.
1.91      kamil     625: .It Li kern.ipc.sysvipc_info ( Dv KERN_SYSVIPC_INFO )
1.39      jruoho    626: Return System V style IPC configuration and run-time information.
                    627: The fourth level name selects the System V style IPC facility.
                    628: .Bl -column "KERN_SYSVIPC_MSG_INFO" "struct shm_sysctl_info" -offset indent
1.92      wiz       629: .It Sy Fourth level name       Sy Type
1.39      jruoho    630: .It KERN_SYSVIPC_MSG_INFO      struct msg_sysctl_info
                    631: .It KERN_SYSVIPC_SEM_INFO      struct sem_sysctl_info
                    632: .It KERN_SYSVIPC_SHM_INFO      struct shm_sysctl_info
                    633: .El
                    634: .Bl -tag -width "123456"
                    635: .It Li KERN_SYSVIPC_MSG_INFO
                    636: Return information on the System V style message facility.
                    637: The
                    638: .Sy msg_sysctl_info
                    639: structure is defined in
                    640: .In sys/msg.h .
                    641: .It Li KERN_SYSVIPC_SEM_INFO
                    642: Return information on the System V style semaphore facility.
                    643: The
                    644: .Sy sem_sysctl_info
                    645: structure is defined in
                    646: .In sys/sem.h .
                    647: .It Li KERN_SYSVIPC_SHM_INFO
                    648: Return information on the System V style shared memory facility.
                    649: The
                    650: .Sy shm_sysctl_info
                    651: structure is defined in
                    652: .In sys/shm.h .
                    653: .El
1.91      kamil     654: .It Li kern.ipc.shmmax ( Dv KERN_SYSVIPC_SHMMAX )
1.39      jruoho    655: Max shared memory segment size in bytes.
1.91      kamil     656: .It Li kern.ipc.shmmni ( Dv KERN_SYSVIPC_SHMMNI )
1.39      jruoho    657: Max number of shared memory identifiers.
1.91      kamil     658: .It Li kern.ipc.shmseg ( Dv KERN_SYSVIPC_SHMSEG )
1.39      jruoho    659: Max shared memory segments per process.
1.91      kamil     660: .It Li kern.ipc.shmmaxpgs ( Dv KERN_SYSVIPC_SHMMAXPGS )
1.39      jruoho    661: Max amount of shared memory in pages.
1.91      kamil     662: .It Li kern.ipc.shm_use_phys ( Dv KERN_SYSVIPC_SHMUSEPHYS )
1.39      jruoho    663: Locking of shared memory in physical memory.
                    664: If 0, memory can be swapped
                    665: out, otherwise it will be locked in physical memory.
                    666: .It Li kern.ipc.msgmni
                    667: Max number of message queue identifiers.
                    668: .It Li kern.ipc.msgseg
                    669: Max number of number of message segments.
                    670: .It Li kern.ipc.semmni
                    671: Max number of number of semaphore identifiers.
                    672: .It Li kern.ipc.semmns
                    673: Max number of number of semaphores in system.
                    674: .It Li kern.ipc.semmnu
                    675: Max number of undo structures in system.
                    676: .El
1.91      kamil     677: .It Li kern.job_control ( Dv KERN_JOB_CONTROL )
1.56      uwe       678: Return 1 if job control is available on this system, otherwise\ 0.
1.91      kamil     679: .It Li kern.labeloffset ( Dv KERN_LABELOFFSET )
1.56      uwe       680: The offset within the sector specified by
                    681: .Dv KERN_LABELSECTOR
                    682: of the
1.1       pavel     683: .Xr disklabel 5 .
1.91      kamil     684: .It Li kern.labelsector ( Dv KERN_LABELSECTOR )
1.1       pavel     685: The sector number containing the
                    686: .Xr disklabel 5 .
1.91      kamil     687: .It Li kern.login_name_max ( Dv KERN_LOGIN_NAME_MAX )
1.1       pavel     688: The size of the storage required for a login name, in bytes,
                    689: including the terminating NUL.
1.91      kamil     690: .It Li kern.logsigexit ( Dv KERN_LOGSIGEXIT )
1.1       pavel     691: If this flag is non-zero, the kernel will
                    692: .Xr log 9
                    693: all process exits due to signals which create a
                    694: .Xr core 5
                    695: file, and whether the coredump was created.
1.91      kamil     696: .It Li kern.mapped_files ( Dv KERN_MAPPED_FILES )
1.58      wiz       697: Returns 1 if the
                    698: .St -p1003.1b-93
                    699: Memory Mapped Files Option is available on this system,
1.56      uwe       700: otherwise\ 0.
1.91      kamil     701: .It Li kern.maxfiles ( Dv KERN_MAXFILES )
1.1       pavel     702: The maximum number of open files that may be open in the system.
1.91      kamil     703: .It Li kern.maxpartitions ( Dv KERN_MAXPARTITIONS )
1.1       pavel     704: The maximum number of partitions allowed per disk.
1.71      wiz       705: .It Li kern.maxlwp
1.70      christos  706: The maximum number of Lightweight Processes (threads) the system allows
                    707: per uid.
1.91      kamil     708: .It Li kern.maxphys ( Dv KERN_MAXPHYS )
1.1       pavel     709: Maximum raw I/O transfer size.
1.91      kamil     710: .It Li kern.maxproc ( Dv KERN_MAXPROC )
1.1       pavel     711: The maximum number of simultaneous processes the system will allow.
1.91      kamil     712: .It Li kern.maxptys ( Dv KERN_MAXPTYS )
1.1       pavel     713: The maximum number of pseudo terminals.
                    714: This value can be both raised and lowered, though it cannot
                    715: be set lower than number of currently used ptys.
                    716: See also
                    717: .Xr pty 4 .
1.91      kamil     718: .It Li kern.maxvnodes ( Dv KERN_MAXVNODES )
1.1       pavel     719: The maximum number of vnodes available on the system.
                    720: This can only be raised.
1.91      kamil     721: .It Li kern.mbuf ( Dv KERN_MBUF )
1.1       pavel     722: Return information about the mbuf control variables.
                    723: Mbufs are data structures which store network packets and other data
                    724: structures in the networking code, see
                    725: .Xr mbuf 9 .
                    726: The third level names for the mbuf variables are detailed below.
                    727: The changeable column shows whether a process with appropriate
                    728: privilege may change the value.
1.21      joerg     729: .Bl -column "kern.mbuf.nmbclusters" "integer" "Changeable" -offset indent
1.92      wiz       730: .It Sy Third level name        Sy Type Sy Changeable
1.1       pavel     731: .\" XXX Changeable? really?
                    732: .It kern.mbuf.mblowat  integer yes
                    733: .It kern.mbuf.mclbytes integer yes
                    734: .It kern.mbuf.mcllowat integer yes
                    735: .It kern.mbuf.msize    integer yes
                    736: .It kern.mbuf.nmbclusters      integer yes
                    737: .El
                    738: .Pp
                    739: The variables are as follows:
                    740: .Bl -tag -width "123456"
1.91      kamil     741: .It Li kern.mbuf.mblowat ( Dv MBUF_MBLOWAT )
1.1       pavel     742: The mbuf low water mark.
1.91      kamil     743: .It Li kern.mbuf.mclbytes ( Dv MBUF_MCLBYTES )
1.1       pavel     744: The mbuf cluster size.
1.91      kamil     745: .It Li kern.mbuf.mcllowat ( Dv MBUF_MCLLOWAT )
1.1       pavel     746: The mbuf cluster low water mark.
1.91      kamil     747: .It Li kern.mbuf.msize ( Dv MBUF_MSIZE )
1.1       pavel     748: The mbuf base size.
1.91      kamil     749: .It Li kern.mbuf.nmbclusters ( Dv MBUF_NMBCLUSTERS )
1.1       pavel     750: The limit on the number of mbuf clusters.
                    751: The variable can only be increased, and only increased on machines with
                    752: direct-mapped pool pages.
                    753: .El
1.91      kamil     754: .It Li kern.memlock ( Dv KERN_MEMLOCK )
1.58      wiz       755: Returns 1 if the
                    756: .St -p1003.1b-93
                    757: Process Memory Locking Option is available on this system,
1.56      uwe       758: otherwise\ 0.
1.91      kamil     759: .It Li kern.memlock_range ( Dv KERN_MEMLOCK_RANGE )
1.58      wiz       760: Returns 1 if the
                    761: .St -p1003.1b-93
                    762: Range Memory Locking Option is available on this system,
1.56      uwe       763: otherwise\ 0.
1.91      kamil     764: .It Li kern.memory_protection ( Dv KERN_MEMORY_PROTECTION )
1.58      wiz       765: Returns 1 if the
                    766: .St -p1003.1b-93
                    767: Memory Protection Option is available on this system,
1.56      uwe       768: otherwise\ 0.
1.102     pgoyette  769: .It Li kern.messages
                    770: Kernel console message verbosity.
                    771: See
                    772: .Sy \<sys/reboot.h\>
                    773: .Bl -column "verbosity" "setting" -offset indent
                    774: .It Sy Verbosity       Setting
                    775: .It \ \ \ \ 0  Silent Sy AB_SILENT
                    776: .It \ \ \ \ 1  Quiet Sy AB_QUIET
                    777: .It \ \ \ \ 2  Normal Sy AB_NORMAL
                    778: .It \ \ \ \ 3  Verbose Sy AB_VERBOSE
                    779: .It \ \ \ \ 4  Debug Sy AB_DEBUG
                    780: .El
1.42      jruoho    781: .It Li kern.module
                    782: Settings related to kernel modules.
                    783: The third level names for the settings are described below.
                    784: .Bl -column "kern.module.autoload" "integer" "Changeable" -offset indent
1.92      wiz       785: .It Sy Third level name        Sy Type Sy Changeable
1.42      jruoho    786: .It kern.module.autoload       integer yes
1.78      pgoyette  787: .It kern.module.autotime       integer yes
1.42      jruoho    788: .It kern.module.verbose        integer yes
                    789: .El
                    790: .Pp
                    791: The variables are as follows:
                    792: .Bl -tag -width "123456"
                    793: .It Li kern.module.autoload
                    794: A boolean that controls whether kernel modules are loaded automatically.
1.52      jruoho    795: See
1.53      jruoho    796: .Xr module 7
1.42      jruoho    797: for additional details.
1.78      pgoyette  798: .It Li kern.module.autotime
                    799: An integer that controls the delay before an attempt is made to
1.79      wiz       800: automatically unload a module that was auto-loaded.
                    801: Setting this value to zero disables the auto-unload function.
1.42      jruoho    802: .It Li kern.module.verbose
                    803: A boolean that enables or disables verbose
                    804: debug messages related to kernel modules.
                    805: .El
1.91      kamil     806: .It Li kern.monotonic_clock ( Dv KERN_MONOTONIC_CLOCK )
1.58      wiz       807: Returns the standard version the implementation of the
                    808: .St -p1003.1b-93
1.49      jruoho    809: Monotonic Clock Option conforms to,
1.56      uwe       810: otherwise\ 0.
1.48      jruoho    811: .It Li kern.mqueue
                    812: Settings related to
                    813: .Tn POSIX
                    814: message queues; see
                    815: .Xr mqueue 3 .
                    816: This node is created dynamically when
                    817: the corresponding kernel module is loaded.
                    818: The third level names for the settings are described below.
                    819: .Bl -column "kern.mqueue.mq_max_msgsize" "integer" "Changeable" -offset indent
1.92      wiz       820: .It Sy Third level name        Sy Type Sy Changeable
1.48      jruoho    821: .It kern.mqueue.mq_open_max    integer yes
                    822: .It kern.mqueue.mq_prio_max    integer yes
                    823: .It kern.mqueue.mq_max_msgsize integer yes
                    824: .It kern.mqueue.mq_def_maxmsg  integer yes
                    825: .It kern.mqueue.mq_max_maxmsg  integer yes
                    826: .El
                    827: .Pp
                    828: The variables are:
                    829: .Bl -tag -width "123456"
                    830: .It Li kern.mqueue.mq_open_max
                    831: The maximum number of message queue descriptors any single process can open.
                    832: .It Li kern.mqueue.mq_prio_max
                    833: The maximum priority of a message.
                    834: .It Li kern.mqueue.mq_max_msgsize
                    835: The maximum size of a message in a message queue.
                    836: .It Li kern.mqueue.mq_def_maxmsg
                    837: The default maximum message count.
                    838: .It Li kern.mqueue.mq_max_maxmsg
                    839: The maximum number of messages in a message queue.
                    840: .El
1.91      kamil     841: .It Li kern.msgbuf ( Dv KERN_MSGBUF )
1.1       pavel     842: The kernel message buffer, rotated so that the head of the circular kernel
                    843: message buffer is at the start of the returned data.
                    844: The returned data may contain NUL bytes.
1.91      kamil     845: .It Li kern.msgbufsize ( Dv KERN_MSGBUFSIZE )
1.1       pavel     846: The maximum number of characters that the kernel message buffer can hold.
1.91      kamil     847: .It Li kern.ngroups ( Dv KERN_NGROUPS )
1.1       pavel     848: The maximum number of supplemental groups.
1.41      jruoho    849: .\" .It Li kern.no_sa_support
                    850: .\" XXX: Undocumented.
1.91      kamil     851: .It Li kern.ntptime ( Dv KERN_NTPTIME )
1.1       pavel     852: A
1.56      uwe       853: .Vt struct ntptimeval
1.1       pavel     854: structure is returned.
                    855: This structure contains data used by the
                    856: .Xr ntpd 8
                    857: program.
1.91      kamil     858: .It Li kern.osrelease ( Dv KERN_OSRELEASE )
1.1       pavel     859: The system release string.
1.91      kamil     860: .It Li kern.osrevision ( Dv KERN_OSREV )
1.1       pavel     861: The system revision string.
1.91      kamil     862: .It Li kern.ostype ( Dv KERN_OSTYPE )
1.1       pavel     863: The system type string.
1.41      jruoho    864: .\".It Li kern.panic_now
                    865: .\" XXX: Undocumented.
1.91      kamil     866: .It Li kern.pipe ( Dv KERN_PIPE )
1.1       pavel     867: Pipe settings.
                    868: The third level names for the  integer pipe settings is detailed below.
                    869: The changeable column shows whether a process with appropriate
                    870: privilege may change the value.
1.21      joerg     871: .Bl -column "kern.pipe.maxbigpipes" "integer" "Changeable" -offset indent
1.92      wiz       872: .It Sy Third level name        Sy Type Sy Changeable
1.1       pavel     873: .It kern.pipe.kvasiz   integer yes
                    874: .It kern.pipe.maxbigpipes      integer yes
                    875: .It kern.pipe.maxkvasz integer yes
                    876: .It kern.pipe.limitkva integer yes
                    877: .It kern.pipe.nbigpipes        integer yes
                    878: .El
                    879: .Pp
                    880: The variables are as follows:
                    881: .Bl -tag -width "123456"
1.91      kamil     882: .It Li kern.pipe.kvasiz ( Dv KERN_PIPE_KVASIZ )
1.1       pavel     883: Amount of kernel memory consumed by pipe buffers.
1.91      kamil     884: .It Li kern.pipe.maxbigpipes ( Dv KERN_PIPE_MAXBIGPIPES )
1.56      uwe       885: Maximum number of
                    886: .Dq big
                    887: pipes.
1.91      kamil     888: .It Li kern.pipe.maxkvasz ( Dv KERN_PIPE_MAXKVASZ )
1.1       pavel     889: Maximum amount of kernel memory to be used for pipes.
1.91      kamil     890: .It Li kern.pipe.limitkva ( Dv KERN_PIPE_LIMITKVA )
1.1       pavel     891: Limit for direct transfers via page loan.
1.91      kamil     892: .It Li kern.pipe.nbigpipes ( Dv KERN_PIPE_NBIGPIPES )
1.56      uwe       893: Number of
                    894: .Dq big
                    895: pipes.
1.1       pavel     896: .El
1.82      joerg     897: .It Li kern.pool
                    898: Provides statistics about the
1.83      wiz       899: .Xr pool 9
1.82      joerg     900: and
                    901: .Xr pool_cache 9
                    902: subsystems.
1.39      jruoho    903: .\" XXX: Undocumented .It Li kern.posix ( ? )
                    904: .\"     This is a node in which the only variable is semmax.
1.91      kamil     905: .It Li kern.posix1version ( Dv KERN_POSIX1 )
1.58      wiz       906: The version of ISO/IEC 9945
                    907: .Pq St -p1003.1
                    908: with which the system attempts to comply.
1.51      jruoho    909: .It Li kern.posix_aio
                    910: The version of
                    911: .St -p1003.1
                    912: and its Asynchronous I/O option to which the system attempts to conform.
1.91      kamil     913: .It Li kern.posix_barriers ( Dv KERN_POSIX_BARRIERS )
1.1       pavel     914: The version of
                    915: .St -p1003.1
                    916: and its
                    917: Barriers
                    918: option to which the system attempts to conform,
1.56      uwe       919: otherwise\ 0.
1.91      kamil     920: .It Li kern.posix_reader_writer_locks ( Dv KERN_POSIX_READER_WRITER_LOCKS )
1.1       pavel     921: The version of
                    922: .St -p1003.1
                    923: and its
                    924: Read-Write Locks
                    925: option to which the system attempts to conform,
1.56      uwe       926: otherwise\ 0.
1.41      jruoho    927: .\".It Li kern.posix_sched
                    928: .\" XXX: Undocumented.
1.91      kamil     929: .It Li kern.posix_semaphores ( Dv KERN_POSIX_SEMAPHORES )
1.1       pavel     930: The version of
                    931: .St -p1003.1
                    932: and its
                    933: Semaphores
                    934: option to which the system attempts to conform,
1.56      uwe       935: otherwise\ 0.
1.91      kamil     936: .It Li kern.posix_spin_locks ( Dv KERN_POSIX_SPIN_LOCKS )
1.1       pavel     937: The version of
                    938: .St -p1003.1
                    939: and its
                    940: Spin Locks
                    941: option to which the system attempts to conform,
1.56      uwe       942: otherwise\ 0.
1.91      kamil     943: .It Li kern.posix_threads ( Dv KERN_POSIX_THREADS )
1.1       pavel     944: The version of
                    945: .St -p1003.1
                    946: and its
                    947: Threads
                    948: option to which the system attempts to conform,
1.56      uwe       949: otherwise\ 0.
1.91      kamil     950: .It Li kern.posix_timers ( Dv KERN_POSIX_TIMERS )
1.1       pavel     951: The version of
                    952: .St -p1003.1
                    953: and its
                    954: Timers
                    955: option to which the system attempts to conform,
1.56      uwe       956: otherwise\ 0.
1.91      kamil     957: .It Li kern.proc ( Dv KERN_PROC )
1.1       pavel     958: Return the entire process table, or a subset of it.
                    959: An array of
1.56      uwe       960: .Vt struct kinfo_proc
1.1       pavel     961: structures is returned,
                    962: whose size depends on the current number of such objects in the system.
                    963: The third and fourth level numeric names are as follows:
1.21      joerg     964: .Bl -column "KERN_PROC_SESSION" "Fourth level is:" -offset indent
1.92      wiz       965: .It Sy Third level name        Sy Fourth level is:
1.21      joerg     966: .It KERN_PROC_ALL      None
                    967: .It KERN_PROC_GID      A group ID
                    968: .It KERN_PROC_PID      A process ID
                    969: .It KERN_PROC_PGRP     A process group
                    970: .It KERN_PROC_RGID     A real group ID
                    971: .It KERN_PROC_RUID     A real user ID
                    972: .It KERN_PROC_SESSION  A session ID
                    973: .It KERN_PROC_TTY      A tty device
                    974: .It KERN_PROC_UID      A user ID
1.1       pavel     975: .El
1.91      kamil     976: .It Li kern.proc2 ( Dv KERN_PROC2 )
1.56      uwe       977: As for
                    978: .Dv KERN_PROC ,
                    979: but an array of
                    980: .Vt struct kinfo_proc2
1.1       pavel     981: structures are returned.
                    982: The fifth level name is the size of the
1.56      uwe       983: .Vt struct kinfo_proc2
1.1       pavel     984: and the sixth level name is the number of structures to return.
1.91      kamil     985: .It Li kern.proc_args ( Dv KERN_PROC_ARGS )
1.1       pavel     986: Return the argv or environment strings (or the number thereof)
                    987: of a process.
                    988: Multiple strings are returned separated by NUL characters.
                    989: The third level name is the process ID.
                    990: The fourth level name is as follows:
1.93      christos  991: .Bl -column "KERN_PROG_PATHNAME" "The full pathname of the executable" -offset indent
1.92      wiz       992: .It Dv KERN_PROC_ARGV  The argv strings
                    993: .It Dv KERN_PROC_ENV   The environ strings
                    994: .It Dv KERN_PROC_NARGV The number of argv strings
                    995: .It Dv KERN_PROC_NENV  The number of environ strings
1.93      christos  996: .It Dv KERN_PROC_PATHNAME      The full pathname of the executable
1.1       pavel     997: .El
1.91      kamil     998: .It Li kern.profiling ( Dv KERN_PROF )
1.1       pavel     999: Return profiling information about the kernel.
                   1000: If the kernel is not compiled for profiling,
1.56      uwe      1001: attempts to retrieve any of the
                   1002: .Dv KERN_PROF
                   1003: values will fail with
1.1       pavel    1004: .Er EOPNOTSUPP .
                   1005: The third level names for the string and integer profiling information
                   1006: is detailed below.
                   1007: The changeable column shows whether a process with appropriate
                   1008: privilege may change the value.
1.21      joerg    1009: .Bl -column "kern.profiling.gmonparam" "struct gmonparam" "Changeable" -offset indent
1.92      wiz      1010: .It Sy Third level name        Sy Type Sy Changeable
1.1       pavel    1011: .It kern.profiling.count       u_short[\|]     yes
                   1012: .It kern.profiling.froms       u_short[\|]     yes
                   1013: .It kern.profiling.gmonparam   struct gmonparam        no
                   1014: .It kern.profiling.state       integer yes
                   1015: .It kern.profiling.tos struct tostruct yes
                   1016: .El
                   1017: .Pp
                   1018: The variables are as follows:
                   1019: .Bl -tag -width "123456"
1.91      kamil    1020: .It Li kern.profiling.count ( Dv GPROF_COUNT )
1.1       pavel    1021: Array of statistical program counter counts.
1.91      kamil    1022: .It Li kern.profiling.froms ( Dv GPROF_FROMS )
1.1       pavel    1023: Array indexed by program counter of call-from points.
1.91      kamil    1024: .It Li kern.profiling.gmonparams ( Dv GPROF_GMONPARAM )
1.1       pavel    1025: Structure giving the sizes of the above arrays.
1.91      kamil    1026: .It Li kern.profiling.state ( Dv GPROF_STATE )
1.1       pavel    1027: Profiling state.
1.56      uwe      1028: If set to
                   1029: .Dv GMON_PROF_ON ,
                   1030: starts profiling.
                   1031: If set to
                   1032: .Dv GMON_PROF_OFF ,
                   1033: stops profiling.
1.91      kamil    1034: .It Li kern.profiling.tos ( Dv GPROF_TOS )
1.1       pavel    1035: Array of
1.56      uwe      1036: .Vt struct tostruct
1.1       pavel    1037: describing destination of calls and their counts.
                   1038: .El
1.41      jruoho   1039: .\" .It Li kern.pset
                   1040: .\" XXX: Undocumented.
1.91      kamil    1041: .It Li kern.rawpartition ( Dv KERN_RAWPARTITION )
1.1       pavel    1042: The raw partition of a disk (a == 0).
1.91      kamil    1043: .It Li kern.root_device ( Dv KERN_ROOT_DEVICE )
1.1       pavel    1044: The name of the root device (e.g.,
                   1045: .Dq wd0 ) .
1.91      kamil    1046: .It Li kern.root_partition ( Dv KERN_ROOT_PARTITION )
1.1       pavel    1047: The root partition on the root device (a == 0).
1.91      kamil    1048: .It Li kern.rtc_offset ( Dv KERN_RTC_OFFSET )
1.1       pavel    1049: Return the offset of real time clock from UTC in minutes.
1.91      kamil    1050: .It Li kern.saved_ids ( Dv KERN_SAVED_IDS )
1.1       pavel    1051: Returns 1 if saved set-group and saved set-user ID is available.
1.91      kamil    1052: .It Li kern.sbmax ( Dv KERN_SBMAX )
1.1       pavel    1053: Maximum socket buffer size.
                   1054: .\" XXX units?
1.91      kamil    1055: .It Li kern.securelevel ( Dv KERN_SECURELVL )
1.25      elad     1056: See
                   1057: .Xr secmodel_securelevel 9 .
1.41      jruoho   1058: .\" .It Li kern.sched
                   1059: .\" XXX: Undocumented.
1.91      kamil    1060: .It Li kern.somaxkva ( Dv KERN_SOMAXKVA )
1.1       pavel    1061: Maximum amount of kernel memory to be used for socket buffers.
                   1062: .\" XXX units?
1.91      kamil    1063: .It Li kern.synchronized_io ( Dv KERN_SYNCHRONIZED_IO )
1.58      wiz      1064: Returns 1 if the
                   1065: .St -p1003.1b-93
                   1066: Synchronized I/O Option is available on this system,
1.56      uwe      1067: otherwise\ 0.
1.19      christos 1068: .It Li kern.timecounter ( dynamic )
                   1069: Display and control the timecounter source of the system.
1.21      joerg    1070: .Bl -column "kern.timecounter.timestepwarnings" "integer" "Changeable" -offset indent
1.92      wiz      1071: .It Sy Third level name        Sy Type Sy Changeable
1.19      christos 1072: .It kern.timecounter.choice    string  no
                   1073: .It kern.timecounter.hardware  string  yes
                   1074: .It kern.timecounter.timestepwarnings  integer yes
                   1075: .El
                   1076: .Pp
                   1077: The variables are as follows:
                   1078: .Bl -tag -width "123456"
                   1079: .It Li kern.timecounter.choice ( dynamic )
                   1080: The list of available timecounters with their quality and frequency.
                   1081: .It Li kern.timecounter.hardware ( dynamic )
                   1082: The currently selected timecounter source.
                   1083: .It Li kern.timecounter.timestepwarnings ( dynamic )
                   1084: If non-zero display a message each time the time is stepped.
                   1085: .El
1.91      kamil    1086: .It Li kern.timex ( Dv KERN_TIMEX )
1.1       pavel    1087: Not available.
1.91      kamil    1088: .It Li kern.tkstat ( Dv KERN_TKSTAT )
1.1       pavel    1089: Return information about the number of characters sent and received
                   1090: on ttys.
                   1091: The third level names for the tty statistic variables are detailed below.
                   1092: The changeable column shows whether a process
                   1093: with appropriate privilege may change the value.
1.21      joerg    1094: .Bl -column "kern.tkstat.cancc" "quad" "Changeable" -offset indent
1.92      wiz      1095: .It Sy Third level name        Sy Type Sy Changeable
1.1       pavel    1096: .It kern.tkstat.cancc  quad    no
                   1097: .It kern.tkstat.nin    quad    no
                   1098: .It kern.tkstat.nout   quad    no
                   1099: .It kern.tkstat.rawcc  quad    no
                   1100: .El
                   1101: .Pp
                   1102: The variables are as follows:
                   1103: .Bl -tag -width "123456"
1.91      kamil    1104: .It Li kern.tkstat.cancc ( Dv KERN_TKSTAT_CANCC )
1.1       pavel    1105: The number of canonical input characters.
1.91      kamil    1106: .It Li kern.tkstat.nin ( Dv KERN_TKSTAT_NIN )
1.1       pavel    1107: The total number of input characters.
1.91      kamil    1108: .It Li kern.tkstat.nout ( Dv KERN_TKSTAT_NOUT )
1.1       pavel    1109: The total number of output characters.
1.91      kamil    1110: .It Li kern.tkstat.rawcc ( Dv KERN_TKSTAT_RAWCC )
1.1       pavel    1111: The number of raw input characters.
                   1112: .El
1.66      christos 1113: .It Li kern.tty
                   1114: The third level names for the tty setup variables are detailed below.
                   1115: The changeable column shows whether a process
                   1116: with appropriate privilege may change the value.
                   1117: .Bl -column "kern.tty.qsize" "int" "Changeable" -offset indent
1.92      wiz      1118: .It Sy Third level name        Sy Type Sy Changeable
1.66      christos 1119: .It kern.tty.qsize     int     yes
                   1120: .El
                   1121: .Pp
                   1122: The variables are as follows:
                   1123: .Bl -tag -width "123456"
                   1124: .It Li kern.tty.qsize
                   1125: Control/display the size of the default input and output queues selected
                   1126: during tty creation.
                   1127: Is converted to a power of two and its range is between
                   1128: .Dv 1024
                   1129: and
                   1130: .Dv 65536 .
                   1131: .El
1.70      christos 1132: .It Li kern.uidinfo
                   1133: Resource usage for the current user.
                   1134: .Bl -column "kern.uidinfo.proccnt" "integer" "Changeable" -offset indent
1.92      wiz      1135: .It Sy Third level name        Sy Type Sy Changeable
1.70      christos 1136: .It kern.uidinfo.proccnt       integer no
                   1137: .It kern.uidinfo.lwpcnt        integer no
                   1138: .It kern.uidinfo.lockcnt       integer no
                   1139: .It kern.uidinfo.sbsize        integer no
                   1140: .El
                   1141: .Bl -tag -width "123456"
                   1142: .It Li kern.uidinfo.proccnt
                   1143: Returns the number of active processes for the current user.
                   1144: .It Li kern.uidinfo.lwpcnt
                   1145: Returns the number of active threads for the current user; the first thread
                   1146: of each process is not counted.
                   1147: .It Li kern.uidinfo.lockcnt
                   1148: Number of locks held by the current user.
                   1149: .It Li kern.uidinfo.sbsize
                   1150: Number of bytes in socket buffers allocated to the current user.
                   1151: .El
1.91      kamil    1152: .It Li kern.urandom ( Dv KERN_URND )
1.1       pavel    1153: Random integer value.
1.45      jruoho   1154: .It Li kern.usercrypto
                   1155: When enabled, allows userland to
                   1156: .Xr open 2
                   1157: the
                   1158: .Pa /dev/crypto
                   1159: special device, used by the
                   1160: .Xr crypto 4
                   1161: system.
                   1162: .It Li kern.userasymcrypto
                   1163: Enables or disables the use of software asymmetric crypto support in the
                   1164: .Xr crypto 4
                   1165: system.
1.1       pavel    1166: .It Li kern.veriexec
1.40      jruoho   1167: Runtime information for
                   1168: .Xr veriexec 8 .
                   1169: .Bl -column "kern.veriexec.algorithms" "integer" "Changeable" -offset indent
1.92      wiz      1170: .It Sy Third level name        Sy Type Sy Changeable
1.40      jruoho   1171: .It kern.veriexec.algorithms   string  no
                   1172: .It kern.veriexec.count        node    not applicable
                   1173: .It kern.veriexec.strict       integer yes
                   1174: .It kern.veriexec.verbose      integer yes
                   1175: .El
1.1       pavel    1176: .Bl -tag -width "123456"
                   1177: .It Li kern.veriexec.algorithms
                   1178: Returns a string with the supported algorithms in Veriexec.
                   1179: .It Li kern.veriexec.count
                   1180: Sub-nodes are added to this node as new mounts are monitored by Veriexec.
                   1181: Each mount will be under its own
                   1182: .No tableN
                   1183: node.
                   1184: Under each node there will be three variables, indicating the mount
1.57      wiz      1185: point, the file system type, and the number of entries.
1.1       pavel    1186: .It Li kern.veriexec.strict
                   1187: Controls the strict level of Veriexec.
                   1188: See
1.62      jruoho   1189: .Xr security 7
1.1       pavel    1190: for more information on each level's implications.
                   1191: .It Li kern.veriexec.verbose
                   1192: Controls the verbosity level of Veriexec.
                   1193: If 0, only the minimal
                   1194: indication required will be given about what's happening - fingerprint
                   1195: mismatches, removal of entries from the tables, modification of a
                   1196: fingerprinted file.
                   1197: If 1, more messages will be printed (ie., when a file with a valid
                   1198: fingerprint is accessed).
                   1199: Verbose level 2 is debug mode.
                   1200: .El
1.91      kamil    1201: .It Li kern.version ( Dv KERN_VERSION )
1.1       pavel    1202: The system version string.
1.91      kamil    1203: .It Li kern.vnode ( Dv KERN_VNODE )
1.1       pavel    1204: Return the entire vnode table.
                   1205: Note, the vnode table is not necessarily a consistent snapshot of
                   1206: the system.
                   1207: The returned data consists of an array whose size depends on the
                   1208: current number of such objects in the system.
                   1209: Each element of the array contains the kernel address of a vnode
1.56      uwe      1210: .Vt struct vnode *
1.1       pavel    1211: followed by the vnode itself
1.56      uwe      1212: .Vt struct vnode .
1.43      jruoho   1213: .\" XXX: Undocumented: kern.lwp: no children?
1.1       pavel    1214: .El
1.50      jruoho   1215: .Ss The machdep.* subtree
1.1       pavel    1216: The set of variables defined is architecture dependent.
                   1217: Most architectures define at least the following variables.
1.43      jruoho   1218: .Bl -column "machdep.booted_kernel" "Type" "Changeable" -offset indent
1.92      wiz      1219: .It Sy Second level name       Sy Type Sy Changeable
1.43      jruoho   1220: .It Li machdep.booted_kernel   string  no
1.1       pavel    1221: .El
1.43      jruoho   1222: .\" XXX: Document the above.
1.50      jruoho   1223: .Ss The net.* subtree
1.1       pavel    1224: The string and integer information available for the
                   1225: .Li net
                   1226: level is detailed below.
                   1227: The changeable column shows whether a process with appropriate
                   1228: privilege may change the value.
                   1229: The second and third levels are typically the protocol family and
                   1230: protocol number, though this is not always the case.
1.21      joerg    1231: .Bl -column "Second level name" "IPsec key management values" "Changeable" -offset indent
1.92      wiz      1232: .It Sy Second level name       Sy Type Sy Changeable
1.1       pavel    1233: .It net.route  routing messages        no
                   1234: .It net.inet   IPv4 values     yes
                   1235: .It net.inet6  IPv6 values     yes
                   1236: .It net.key    IPsec key management values     yes
                   1237: .El
                   1238: .Bl -tag -width "123456"
1.91      kamil    1239: .It Li net.route ( Dv PF_ROUTE )
1.1       pavel    1240: .\" XXX really?
                   1241: Return the entire routing table or a subset of it.
                   1242: The data is returned as a sequence of routing messages (see
                   1243: .Xr route 4
                   1244: for the header file, format and meaning).
                   1245: The length of each message is contained in the message header.
                   1246: .Pp
1.56      uwe      1247: The third level name is a protocol number, which is currently always\ 0.
1.1       pavel    1248: The fourth level name is an address family, which may be set to 0 to
                   1249: select all address families.
                   1250: The fifth and sixth level names are as follows:
1.21      joerg    1251: .Bl -column "Fifth level name" "Sixth level is:" -offset indent
1.92      wiz      1252: .It Sy Fifth level name        Sy Sixth level is:
1.21      joerg    1253: .It NET_RT_FLAGS       rtflags
                   1254: .It NET_RT_DUMP        None
                   1255: .It NET_RT_IFLIST      None
1.1       pavel    1256: .El
1.91      kamil    1257: .It Li net.inet ( Dv PF_INET )
1.1       pavel    1258: Get or set various global information about the IPv4
                   1259: .Pq Internet Protocol version 4 .
                   1260: The third level name is the protocol.
                   1261: The fourth level name is the variable name.
                   1262: The currently defined protocols and names are:
1.92      wiz      1263: .Bl -column "Protocol" "anonportalgo.available" "integer" "Changeable" -offset indent
                   1264: .It Sy Protocol        Variable        Sy Type Sy Changeable
1.1       pavel    1265: .It arp        down    integer yes
                   1266: .It arp        keep    integer yes
1.65      christos 1267: .It arp        log_movements   integer yes
                   1268: .It arp        log_permanent_modify    integer yes
1.86      christos 1269: .It arp        log_unknown_network     integer yes
1.65      christos 1270: .It arp        log_wrong_iface integer yes
1.1       pavel    1271: .It carp       allow   integer yes
                   1272: .It carp       preempt integer yes
                   1273: .It carp       log     integer yes
                   1274: .It carp       arpbalance      integer yes
                   1275: .It icmp       errppslimit     integer yes
                   1276: .It icmp       maskrepl        integer yes
                   1277: .It icmp       rediraccept     integer yes
                   1278: .It icmp       redirtimeout    integer yes
1.28      christos 1279: .It icmp       bmcastecho      integer yes
1.1       pavel    1280: .It ip allowsrcrt      integer yes
1.72      christos 1281: .It ip         anonportalgo.selected   string  yes
                   1282: .It ip         anonportalgo.available  string  yes
1.74      christos 1283: .It ip         anonportalgo.reserve    struct  yes
1.1       pavel    1284: .It ip anonportmax     integer yes
                   1285: .It ip anonportmin     integer yes
                   1286: .It ip checkinterface  integer yes
1.103     roy      1287: .It ip dad_count       integer yes
1.1       pavel    1288: .It ip directed-broadcast      integer yes
                   1289: .It ip do_loopback_cksum       integer yes
                   1290: .It ip forwarding      integer yes
                   1291: .It ip forwsrcrt       integer yes
                   1292: .It ip gifttl  integer yes
                   1293: .It ip grettl  integer yes
1.8       liamjfoy 1294: .It ip hashsize        integer yes
1.1       pavel    1295: .It ip hostzerobroadcast       integer yes
                   1296: .It ip lowportmin      integer yes
                   1297: .It ip lowportmax      integer yes
                   1298: .It ip maxflows        integer yes
                   1299: .It ip maxfragpackets  integer yes
                   1300: .It ip mtudisc integer yes
                   1301: .It ip mtudisctimeout  integer yes
                   1302: .It ip random_id       integer yes
                   1303: .It ip redirect        integer yes
                   1304: .It ip subnetsarelocal integer yes
                   1305: .It ip ttl     integer yes
                   1306: .It tcp        rfc1323 integer yes
                   1307: .It tcp        sendspace       integer yes
                   1308: .It tcp        recvspace       integer yes
                   1309: .It tcp        mssdflt integer yes
                   1310: .It tcp        syn_cache_limit integer yes
                   1311: .It tcp        syn_bucket_limit        integer yes
                   1312: .It tcp        syn_cache_interval      integer yes
                   1313: .It tcp        init_win        integer yes
                   1314: .It tcp        init_win_local  integer yes
                   1315: .It tcp        mss_ifmtu       integer yes
                   1316: .It tcp        win_scale       integer yes
                   1317: .It tcp        timestamps      integer yes
                   1318: .It tcp        compat_42       integer yes
                   1319: .It tcp        cwm     integer yes
                   1320: .It tcp        cwm_burstsize   integer yes
                   1321: .It tcp        ack_on_push     integer yes
                   1322: .It tcp        keepidle        integer yes
                   1323: .It tcp        keepintvl       integer yes
                   1324: .It tcp        keepcnt integer yes
                   1325: .It tcp        slowhz  integer no
1.12      christos 1326: .It tcp        keepinit        integer yes
1.1       pavel    1327: .It tcp        log_refused     integer yes
                   1328: .It tcp        rstppslimit     integer yes
                   1329: .It tcp        ident   struct  no
1.13      christos 1330: .It tcp        drop    struct  no
1.1       pavel    1331: .It tcp        sack.enable     integer yes
                   1332: .It tcp        sack.globalholes        integer no
                   1333: .It tcp        sack.globalmaxholes     integer yes
                   1334: .It tcp        sack.maxholes   integer yes
                   1335: .It tcp        ecn.enable      integer yes
                   1336: .It tcp        ecn.maxretries  integer yes
                   1337: .It tcp        congctl.selected        string  yes
                   1338: .It tcp        congctl.available       string  yes
                   1339: .It tcp        abc.enable      integer yes
                   1340: .It tcp        abc.aggressive  integer yes
                   1341: .It udp        checksum        integer yes
                   1342: .It udp        do_loopback_cksum       integer yes
                   1343: .It udp        recvspace       integer yes
                   1344: .It udp        sendspace       integer yes
                   1345: .El
                   1346: .Pp
                   1347: The variables are as follows:
                   1348: .Bl -tag -width "123456"
                   1349: .It Li arp.down
                   1350: Failed ARP entry lifetime.
                   1351: .It Li arp.keep
                   1352: Valid ARP entry lifetime.
                   1353: .It Li carp.allow
                   1354: If set to 0, incoming
                   1355: .Xr carp 4
                   1356: packets will not be processed.
                   1357: If set to any other value, processing will occur.
                   1358: Enabled by default.
                   1359: .It Li carp.arpbalance
                   1360: If set to any value other than 0, the ARP balancing functionality of
                   1361: .Xr carp 4
                   1362: is enabled.
                   1363: When ARP requests are received for an IP address which is part of any virtual
                   1364: host, carp will hash the source IP in the ARP request to select one of the
                   1365: virtual hosts from the set of all the virtual hosts which have that IP address.
                   1366: The master of that host will respond with the correct virtual MAC address.
                   1367: Disabled by default.
                   1368: .It Li carp.log
                   1369: If set to any value other than 0,
                   1370: .Xr carp 4
                   1371: will log errors.
                   1372: Disabled by default.
                   1373: .It Li carp.preempt
                   1374: If set to 0,
                   1375: .Xr carp 4
                   1376: will not attempt to become master if it is receiving advertisements from
                   1377: another active master.
                   1378: If set to any other value, carp will become master of the virtual host if it
                   1379: believes it can send advertisements more frequently than the current master.
                   1380: Disabled by default.
                   1381: .It Li ip.allowsrcrt
                   1382: If set to 1, the host accepts source routed packets.
1.72      christos 1383: .It Li ip.anonportalgo.available
                   1384: The available RFC 6056 port randomization algorithms.
1.74      christos 1385: .It Li ip.anonportalgo.reserve
                   1386: A bitmask of ports that will not be used during anonymous or privileged
                   1387: port selection.
1.72      christos 1388: .It Li ip.anonportalgo.selected
                   1389: The currently selected RFC 6056 port randomization algorithm.
1.1       pavel    1390: .It Li ip.anonportmax
                   1391: The highest port number to use for TCP and UDP ephemeral port allocation.
                   1392: This cannot be set to less than 1024 or greater than 65535, and must
                   1393: be greater than
                   1394: .Li ip.anonportmin .
                   1395: .It Li ip.anonportmin
                   1396: The lowest port number to use for TCP and UDP ephemeral port allocation.
                   1397: This cannot be set to less than 1024 or greater than 65535.
                   1398: .It Li ip.checkinterface
                   1399: If set to non-zero, the host will reject packets addressed to it
                   1400: that arrive on an interface not bound to that address.
                   1401: Currently, this must be disabled if ipnat is used to translate the
                   1402: destination address to another local interface, or if addresses
                   1403: are added to the loopback interface instead of the interface where
                   1404: the packets for those packets are received.
1.103     roy      1405: .It Li ip.dad_count
                   1406: The number of
                   1407: .Xr arp 4
                   1408: probes sent for Address Conflict Detection.
                   1409: Set to 0 to disable this.
1.1       pavel    1410: .It Li ip.directed-broadcast
                   1411: If set to 1, enables directed broadcast behavior for the host.
                   1412: .It Li ip.do_loopback_cksum
                   1413: Perform IP checksum on loopback.
                   1414: .It Li ip.forwarding
                   1415: If set to 1, enables IP forwarding for the host,
                   1416: meaning that the host is acting as a router.
                   1417: .It Li ip.forwsrcrt
                   1418: If set to 1, enables forwarding of source-routed packets for the host.
                   1419: This value may only be changed if the kernel security level is less than 1.
                   1420: .It Li ip.gifttl
                   1421: The maximum time-to-live (hop count) value for an IPv4 packet generated by
                   1422: .Xr gif 4
                   1423: tunnel interface.
                   1424: .It Li ip.grettl
                   1425: The maximum time-to-live (hop count) value for an IPv4 packet generated by
                   1426: .Xr gre 4
                   1427: tunnel interface.
1.8       liamjfoy 1428: .It Li ip.hashsize
                   1429: The size of IPv4 Fast Forward hash table.
                   1430: This value must be a power of 2 (64, 256...).
                   1431: A larger hash table size results in fewer collisions.
                   1432: Also see
                   1433: .Li ip.maxflows .
1.1       pavel    1434: .It Li ip.hostzerobroadcast
                   1435: All zeroes address is broadcast address.
                   1436: .It Li ip.lowportmax
                   1437: The highest port number to use for TCP and UDP reserved port allocation.
                   1438: This cannot be set to less than 0 or greater than 1024, and must
                   1439: be greater than
                   1440: .Li ip.lowportmin .
                   1441: .It Li ip.lowportmin
                   1442: The lowest port number to use for TCP and UDP reserved port allocation.
                   1443: This cannot be set to less than 0 or greater than 1024, and must
                   1444: be smaller than
                   1445: .Li ip.lowportmax .
                   1446: .It Li ip.maxflows
1.5       liamjfoy 1447: IPv4 Fast Forwarding is enabled by default.
                   1448: If set to 0, IPv4 Fast Forwarding is disabled.
1.1       pavel    1449: .Li ip.maxflows
                   1450: controls the maximum amount of flows which can be created.
                   1451: The default value is 256.
                   1452: .It Li ip.maxfragpackets
                   1453: The maximum number of fragmented packets the node will accept.
                   1454: 0 means that the node will not accept any fragmented packets.
                   1455: \-1 means that the node will accept as many fragmented packets as it receives.
                   1456: The flag is provided basically for avoiding possible DoS attacks.
                   1457: .It Li ip.mtudisc
                   1458: If set to 1, enables Path MTU Discovery (RFC 1191).
                   1459: When Path MTU Discovery is enabled, the transmitted TCP segment
                   1460: size will be determined by the advertised maximum segment size
                   1461: (MSS) from the remote end, as constrained by the path MTU.
                   1462: If MTU Discovery is disabled, the transmitted segment size will
                   1463: never be greater than
                   1464: .Li tcp.mssdflt
                   1465: (the local maximum segment size).
                   1466: .It Li ip.mtudisctimeout
                   1467: The number of seconds in which a route added by the Path MTU
                   1468: Discovery engine will time out.
                   1469: When the route times out, the Path
                   1470: MTU Discovery engine will attempt to probe a larger path MTU.
                   1471: .It Li ip.random_id
                   1472: Assign random ip_id values.
                   1473: .It Li ip.redirect
                   1474: If set to 1, ICMP redirects may be sent by the host.
                   1475: This option is ignored unless the host is routing IP packets,
                   1476: and should normally be enabled on all systems.
                   1477: .It Li ip.subnetsarelocal
                   1478: If set to 1, subnets are to be considered local addresses.
                   1479: .It Li ip.ttl
                   1480: The maximum time-to-live (hop count) value for an IP packet sourced by
                   1481: the system.
                   1482: This value applies to normal transport protocols, not to ICMP.
                   1483: .It Li icmp.errppslimit
                   1484: The variable specifies the maximum number of outgoing ICMP error messages,
                   1485: per second.
                   1486: ICMP error messages that exceeded the value are subject to rate limitation
                   1487: and will not go out from the node.
                   1488: Negative value disables rate limitation.
                   1489: .It Li icmp.maskrepl
                   1490: If set to 1, ICMP network mask requests are to be answered.
                   1491: .It Li icmp.rediraccept
                   1492: If set to non-zero, the host will accept ICMP redirect packets.
                   1493: Note that routers will never accept ICMP redirect packets,
                   1494: and the variable is meaningful on IP hosts only.
                   1495: .It Li icmp.redirtimeout
                   1496: The variable specifies lifetime of routing entries generated by incoming
                   1497: ICMP redirect.
                   1498: This defaults to 600 seconds.
                   1499: .It Li icmp.returndatabytes
                   1500: Number of bytes to return in an ICMP error message.
1.28      christos 1501: .It Li icmp.bmcastecho
                   1502: If set to 1, enables responding to ICMP echo or timestamp request to the
                   1503: broadcast address.
1.1       pavel    1504: .It Li tcp.ack_on_push
                   1505: If set to 1, TCP is to immediately transmit an ACK upon reception of
                   1506: a packet with PUSH set.
                   1507: This can avoid losing a round trip time in some rare situations,
                   1508: but has the caveat of potentially defeating TCP's delayed ACK algorithm.
                   1509: Use of this option is generally not recommended, but
                   1510: the variable exists in case your configuration really needs it.
                   1511: .It Li tcp.compat_42
                   1512: If set to 1, enables work-arounds for bugs in the 4.2BSD TCP implementation.
                   1513: Use of this option is not recommended, although it may be
                   1514: required in order to communicate with extremely old TCP implementations.
                   1515: .It Li tcp.cwm
                   1516: If set to 1, enables use of the Hughes/Touch/Heidemann Congestion Window
                   1517: Monitoring algorithm.
                   1518: This algorithm prevents line-rate bursts of packets that could
                   1519: otherwise occur when data begins flowing on an idle TCP connection.
                   1520: These line-rate bursts can contribute to network and router congestion.
                   1521: This can be particularly useful on World Wide Web servers
                   1522: which support HTTP/1.1, which has lingering connections.
                   1523: .It Li tcp.cwm_burstsize
                   1524: The Congestion Window Monitoring allowed burst size, in terms
                   1525: of packet count.
                   1526: .It Li tcp.delack_ticks
                   1527: Number of ticks to delay sending an ACK.
                   1528: .It Li tcp.do_loopback_cksum
                   1529: Perform TCP checksum on loopback.
                   1530: .It Li tcp.init_win
1.76      wiz      1531: A value indicating the TCP initial congestion window.
                   1532: The valid range
1.87      matt     1533: is 0 to 10 (maximum specified by RFC6928),
1.75      christos 1534: with a default of 4 (approximately 4K per RFC3390).
1.1       pavel    1535: .It Li tcp.init_win_local
                   1536: Like
                   1537: .Li tcp.init_win ,
                   1538: but used when communicating with hosts on a local network.
                   1539: .It Li tcp.keepcnt
                   1540: Number of keepalive probes sent before declaring a connection dead.
                   1541: If set to zero, there is no limit;
                   1542: keepalives will be sent until some kind of
                   1543: response is received from the peer.
                   1544: .It Li tcp.keepidle
                   1545: Time a connection must be idle before keepalives are sent (if keepalives
                   1546: are enabled for the connection).
                   1547: See also tcp.slowhz.
                   1548: .It Li tcp.keepintvl
                   1549: Time after a keepalive probe is sent until, in the absence of any response,
                   1550: another probe is sent.
                   1551: See also tcp.slowhz.
                   1552: .It Li tcp.log_refused
                   1553: If set to 1, refused TCP connections to the host will be logged.
1.12      christos 1554: .It Li tcp.keepinit
                   1555: Timeout in seconds during connection establishment.
1.1       pavel    1556: .It Li tcp.mss_ifmtu
                   1557: If set to 1, TCP calculates the outgoing maximum segment size based on
                   1558: the MTU of the appropriate interface.
                   1559: If set to 0, it is calculated based on the greater of the MTU of the
                   1560: interface, and the largest (non-loopback) interface MTU on the system.
                   1561: .It Li tcp.mssdflt
                   1562: The default maximum segment size both advertised to the peer
                   1563: and to use when either the peer does not advertise a maximum segment size to
                   1564: us during connection setup or Path MTU Discovery
                   1565: .Li ( ip.mtudisc )
                   1566: is disabled.
                   1567: Do not change this value unless you really know what you are doing.
                   1568: .It Li tcp.recvspace
                   1569: The default TCP receive buffer size.
                   1570: .It Li tcp.rfc1323
                   1571: If set to 1, enables RFC 1323 extensions to TCP.
                   1572: .It Li tcp.rstppslimit
                   1573: The variable specifies the maximum number of outgoing TCP RST packets,
                   1574: per second.
                   1575: TCP RST packet that exceeded the value are subject to rate limitation
                   1576: and will not go out from the node.
                   1577: Negative value disables rate limitation.
1.13      christos 1578: .It Li tcp.ident
                   1579: Return the user ID of a connected socket pair.
                   1580: (RFC1413 Identification Protocol lookups.)
                   1581: .It Li tcp.drop
                   1582: Drop a TCP socket pair connection.
1.1       pavel    1583: .It Li tcp.sack.enable
                   1584: If set to 1, enables RFC 2018 Selective ACKnowledgement.
                   1585: .It Li tcp.sack.globalholes
                   1586: Global number of TCP SACK holes.
                   1587: .It Li tcp.sack.globalmaxholes
                   1588: Global maximum number of TCP SACK holes.
                   1589: .It Li tcp.sack.maxholes
                   1590: Maximum number of TCP SACK holes allowed per connection.
                   1591: .It Li tcp.ecn.enable
                   1592: If set to 1, enables RFC 3168 Explicit Congestion Notification.
                   1593: .It Li tcp.ecn.maxretries
                   1594: Number of times to retry sending the ECN-setup packet.
                   1595: .It Li tcp.sendspace
                   1596: The default TCP send buffer size.
                   1597: .It Li tcp.slowhz
                   1598: The units for tcp.keepidle and tcp.keepintvl; those variables are in ticks
                   1599: of a clock that ticks tcp.slowhz times per second.
                   1600: (That is, their values
                   1601: must be divided by the tcp.slowhz value to get times in seconds.)
                   1602: .It Li tcp.syn_bucket_limit
                   1603: The maximum number of entries allowed per hash bucket in the TCP
                   1604: compressed state engine.
                   1605: .It Li tcp.syn_cache_limit
                   1606: The maximum number of entries allowed in the TCP compressed state
                   1607: engine.
                   1608: .It Li tcp.timestamps
                   1609: If rfc1323 is enabled, a value of 1 indicates RFC 1323 time stamp options,
                   1610: used for measuring TCP round trip times, are enabled.
                   1611: .It Li tcp.win_scale
                   1612: If rfc1323 is enabled, a value of 1 indicates RFC 1323 window scale options,
                   1613: for increasing the TCP window size, are enabled.
                   1614: .It Li tcp.congctl.available
                   1615: The available TCP congestion control algorithms.
                   1616: .It Li tcp.congctl.selected
                   1617: The currently selected TCP congestion control algorithm.
                   1618: .It Li tcp.abc.enable
                   1619: If set to 1, use RFC 3465 Appropriate Byte Counting (ABC).
                   1620: If set to 0, use traditional Packet Counting.
                   1621: .It Li tcp.abc.aggressive
                   1622: Choose the L parameter found in RFC 3465.
                   1623: L is the maximum cwnd increase for an ack during slow start.
                   1624: If set to 1, use L=2*SMSS.
                   1625: If set to 0, use L=1*SMSS.
                   1626: It has no effect unless tcp.abc.enable is set to 1.
                   1627: .It Li udp.checksum
                   1628: If set to 1, UDP checksums are being computed.
                   1629: Received non-zero UDP checksums are always checked.
                   1630: Disabling UDP checksums is strongly discouraged.
1.67      christos 1631: .It Li udp.recvspace
                   1632: The default UDP receive buffer size.
1.1       pavel    1633: .It Li udp.sendspace
                   1634: The default UDP send buffer size.
                   1635: .El
                   1636: .Pp
                   1637: For variables net.*.ipsec, please refer to
                   1638: .Xr ipsec 4 .
1.91      kamil    1639: .It Li net.inet6 ( Dv PF_INET6 )
1.1       pavel    1640: Get or set various global information about the IPv6
                   1641: .Pq Internet Protocol version 6 .
                   1642: The third level name is the protocol.
                   1643: The fourth level name is the variable name.
                   1644: The currently defined protocols and names are:
1.92      wiz      1645: .Bl -column "Protocol" "anonportalgo.available" "integer" "Changeable" -offset indent
                   1646: .It Sy Protocol        Variable        Sy Type Sy Changeable
1.1       pavel    1647: .It icmp6      errppslimit     integer yes
                   1648: .It icmp6      mtudisc_hiwat   integer yes
                   1649: .It icmp6      mtudisc_lowat   integer yes
                   1650: .It icmp6      nd6_debug       integer yes
                   1651: .It icmp6      nd6_delay       integer yes
                   1652: .It icmp6      nd6_maxnudhint  integer yes
                   1653: .It icmp6      nd6_mmaxtries   integer yes
                   1654: .It icmp6      nd6_prune       integer yes
                   1655: .It icmp6      nd6_umaxtries   integer yes
                   1656: .It icmp6      nd6_useloopback integer yes
                   1657: .It icmp6      nodeinfo        integer yes
                   1658: .It icmp6      rediraccept     integer yes
                   1659: .It icmp6      redirtimeout    integer yes
                   1660: .It ip6        accept_rtadv    integer yes
1.96      christos 1661: .It ip6        addctlpolicy    struct in6_addrpolicy   no
1.72      christos 1662: .It ip6        anonportalgo.selected   string  yes
                   1663: .It ip6        anonportalgo.available  string  yes
1.90      kamil    1664: .It ip6        anonportalgo.reserve    struct  yes
1.1       pavel    1665: .It ip6        anonportmax     integer yes
                   1666: .It ip6        anonportmin     integer yes
                   1667: .It ip6        auto_flowlabel  integer yes
                   1668: .It ip6        dad_count       integer yes
                   1669: .It ip6        defmcasthlim    integer yes
                   1670: .It ip6        forwarding      integer yes
                   1671: .It ip6        gifhlim integer yes
1.7       liamjfoy 1672: .It ip6        hashsize        integer yes
1.1       pavel    1673: .It ip6        hlim    integer yes
                   1674: .It ip6        hdrnestlimit    integer yes
                   1675: .It ip6        kame_version    string  no
                   1676: .It ip6        keepfaith       integer yes
                   1677: .It ip6        log_interval    integer yes
                   1678: .It ip6        lowportmax      integer yes
                   1679: .It ip6        lowportmin      integer yes
1.73      christos 1680: .It ip6        maxdynroutes    integer yes
                   1681: .It ip6        maxifprefixes   integer yes
                   1682: .It ip6        maxifdefrouters integer yes
1.5       liamjfoy 1683: .It ip6        maxflows        integer yes
1.1       pavel    1684: .It ip6        maxfragpackets  integer yes
                   1685: .It ip6        maxfrags        integer yes
1.73      christos 1686: .It ip6        neighborgcthresh        integer yes
1.1       pavel    1687: .It ip6        redirect        integer yes
                   1688: .It ip6        rr_prune        integer yes
                   1689: .It ip6        use_deprecated  integer yes
                   1690: .It ip6        v6only  integer yes
                   1691: .It udp6       do_loopback_cksum       integer yes
                   1692: .It udp6       recvspace       integer yes
                   1693: .It udp6       sendspace       integer yes
                   1694: .El
                   1695: .Pp
                   1696: The variables are as follows:
                   1697: .Bl -tag -width "123456"
                   1698: .It Li ip6.accept_rtadv
                   1699: If set to non-zero, the node will accept ICMPv6 router advertisement packets
                   1700: and autoconfigures address prefixes and default routers.
                   1701: The node must be a host
                   1702: .Pq not a router
                   1703: for the option to be meaningful.
1.72      christos 1704: .It Li ip6.anonportalgo.available
                   1705: The available RFC 6056 port randomization algorithms.
1.74      christos 1706: .It Li ip6.anonportalgo.reserve
                   1707: A bitmask of ports that will not be used during anonymous or privileged
                   1708: port selection.
1.72      christos 1709: .It Li ip6.anonportalgo.selected
                   1710: The currently selected RFC 6056 port randomization algorithm.
1.1       pavel    1711: .It Li ip6.anonportmax
                   1712: The highest port number to use for TCP and UDP ephemeral port allocation.
                   1713: This cannot be set to less than 1024 or greater than 65535, and must
                   1714: be greater than
                   1715: .Li ip6.anonportmin .
                   1716: .It Li ip6.anonportmin
                   1717: The lowest port number to use for TCP and UDP ephemeral port allocation.
                   1718: This cannot be set to less than 1024 or greater than 65535.
                   1719: .It Li ip6.auto_flowlabel
                   1720: On connected transport protocol packets,
                   1721: fill IPv6 flowlabel field to help intermediate routers to identify packet flows.
                   1722: .It Li ip6.dad_count
                   1723: The variable configures number of IPv6 DAD
                   1724: .Pq duplicated address detection
                   1725: probe packets.
                   1726: The packets will be generated when IPv6 interface addresses are configured.
                   1727: .It Li ip6.defmcasthlim
                   1728: The default hop limit value for an IPv6 multicast packet sourced by the node.
                   1729: This value applies to all the transport protocols on top of IPv6.
                   1730: There are APIs to override the value, as documented in
                   1731: .Xr ip6 4 .
                   1732: .It Li ip6.forwarding
                   1733: If set to 1, enables IPv6 forwarding for the node,
                   1734: meaning that the node is acting as a router.
                   1735: If set to 0, disables IPv6 forwarding for the node,
                   1736: meaning that the node is acting as a host.
                   1737: IPv6 specification defines node behavior for
                   1738: .Dq router
                   1739: case and
                   1740: .Dq host
                   1741: case quite differently, and changing this variable during operation
                   1742: may cause serious trouble.
                   1743: It is recommended to configure the variable at bootstrap time,
                   1744: and bootstrap time only.
                   1745: .It Li ip6.gifhlim
                   1746: The maximum hop limit value for an IPv6 packet generated by
                   1747: .Xr gif 4
                   1748: tunnel interface.
                   1749: .It Li ip6.hdrnestlimit
                   1750: The number of IPv6 extension headers permitted on incoming IPv6 packets.
                   1751: If set to 0, the node will accept as many extension headers as possible.
1.7       liamjfoy 1752: .It Li ip6.hashsize
                   1753: The size of IPv6 Fast Forward hash table.
1.56      uwe      1754: This value must be a power of 2 (64, 256, ...).
1.7       liamjfoy 1755: A larger hash table size results in fewer collisions.
                   1756: Also see
                   1757: .Li ip6.maxflows .
1.1       pavel    1758: .It Li ip6.hlim
                   1759: The default hop limit value for an IPv6 unicast packet sourced by the node.
                   1760: This value applies to all the transport protocols on top of IPv6.
                   1761: There are APIs to override the value, as documented in
                   1762: .Xr ip6 4 .
                   1763: .It Li ip6.kame_version
                   1764: The string identifies the version of KAME IPv6 stack implemented in the kernel.
                   1765: .It Li ip6.keepfaith
                   1766: If set to non-zero, it enables
                   1767: .Dq FAITH
                   1768: TCP relay IPv6-to-IPv4 translator code in the kernel.
                   1769: Refer
                   1770: .Xr faith 4
                   1771: and
                   1772: .Xr faithd 8
                   1773: for detail.
                   1774: .It Li ip6.log_interval
                   1775: The variable controls amount of logs generated by IPv6 packet
                   1776: forwarding engine, by setting interval between log output
                   1777: .Pq in seconds .
                   1778: .It Li ip6.lowportmax
                   1779: The highest port number to use for TCP and UDP reserved port allocation.
                   1780: This cannot be set to less than 0 or greater than 1024, and must
                   1781: be greater than
                   1782: .Li ip6.lowportmin .
                   1783: .It Li ip6.lowportmin
                   1784: The lowest port number to use for TCP and UDP reserved port allocation.
                   1785: This cannot be set to less than 0 or greater than 1024, and must
                   1786: be smaller than
                   1787: .Li ip6.lowportmax .
1.73      christos 1788: .It Li ip6.maxdynroutes
                   1789: Maximum number of routes created by redirect.
                   1790: Set it to negative to disable.
                   1791: The default value is 4096.
                   1792: .It Li ip6.maxifprefixes
                   1793: Maximum number of prefixes created by route advertisements per interface.
                   1794: Set it to negative to disable.
                   1795: The default value is 16.
                   1796: .It Li ip6.maxifdefrouters 16
                   1797: Maximum number of default routers created by route advertisements per interface.
                   1798: Set it to negative to disable.
                   1799: The default value is 16.
1.5       liamjfoy 1800: .It Li ip6.maxflows
                   1801: IPv6 Fast Forwarding is enabled by default.
                   1802: If set to 0, IPv6 Fast Forwarding is disabled.
                   1803: .Li ip6.maxflows
                   1804: controls the maximum amount of flows which can be created.
1.6       liamjfoy 1805: The default value is 256.
1.1       pavel    1806: .It Li ip6.maxfragpackets
                   1807: The maximum number of fragmented packets the node will accept.
                   1808: 0 means that the node will not accept any fragmented packets.
                   1809: \-1 means that the node will accept as many fragmented packets as it receives.
                   1810: The flag is provided basically for avoiding possible DoS attacks.
                   1811: .It Li ip6.maxfrags
                   1812: The maximum number of fragments the node will accept.
                   1813: 0 means that the node will not accept any fragments.
                   1814: \-1 means that the node will accept as many fragments as it receives.
                   1815: The flag is provided basically for avoiding possible DoS attacks.
1.73      christos 1816: .It Li ip6.neighborgcthresh
1.98      ozaki-r  1817: Maximum number of entries in neighbor cache per interface.
1.73      christos 1818: Set to negative to disable.
                   1819: The default value is 2048.
1.1       pavel    1820: .It Li ip6.redirect
                   1821: If set to 1, ICMPv6 redirects may be sent by the node.
                   1822: This option is ignored unless the node is routing IP packets,
                   1823: and should normally be enabled on all systems.
                   1824: .It Li ip6.rr_prune
                   1825: The variable specifies interval between IPv6 router renumbering prefix
                   1826: babysitting, in seconds.
                   1827: .It Li ip6.use_deprecated
                   1828: The variable controls use of deprecated address, specified in RFC 2462 5.5.4.
                   1829: .It Li ip6.v6only
                   1830: The variable specifies initial value for
                   1831: .Dv IPV6_V6ONLY
                   1832: socket option for
                   1833: .Dv AF_INET6
                   1834: socket.
                   1835: Please refer to
                   1836: .Xr ip6 4
                   1837: for detail.
                   1838: .It Li icmp6.errppslimit
                   1839: The variable specifies the maximum number of outgoing ICMPv6 error messages,
                   1840: per second.
                   1841: ICMPv6 error messages that exceeded the value are subject to rate limitation
                   1842: and will not go out from the node.
                   1843: Negative value disables rate limitation.
                   1844: .It Li icmp6.mtudisc_hiwat
                   1845: .It Li icmp6.mtudisc_lowat
                   1846: The variables define the maximum number of routing table entries,
                   1847: created due to path MTU discovery
                   1848: .Pq prevents denial-of-service attacks with ICMPv6 too big messages .
                   1849: When IPv6 path MTU discovery happens, we keep path MTU information into
                   1850: the routing table.
                   1851: If the number of routing table entries exceed the value,
                   1852: the kernel will not attempt to keep the path MTU information.
                   1853: .Li icmp6.mtudisc_hiwat
                   1854: is used when we have verified ICMPv6 too big messages.
                   1855: .Li icmp6.mtudisc_lowat
                   1856: is used when we have unverified ICMPv6 too big messages.
                   1857: Verification is performed by using address/port pairs kept in connected pcbs.
                   1858: Negative value disables the upper limit.
                   1859: .It Li icmp6.nd6_debug
                   1860: If set to non-zero, kernel IPv6 neighbor discovery code will generate
                   1861: debugging messages.
                   1862: The debug outputs are useful to diagnose IPv6 interoperability issues.
                   1863: The flag must be set to 0 for normal operation.
                   1864: .It Li icmp6.nd6_delay
                   1865: The variable specifies
                   1866: .Dv DELAY_FIRST_PROBE_TIME
                   1867: timing constant in IPv6 neighbor discovery specification
                   1868: .Pq RFC 2461 ,
                   1869: in seconds.
                   1870: .It Li icmp6.nd6_maxnudhint
                   1871: IPv6 neighbor discovery permits upper layer protocols to supply reachability
                   1872: hints, to avoid unnecessary neighbor discovery exchanges.
                   1873: The variable defines the number of consecutive hints the neighbor discovery
                   1874: layer will take.
                   1875: For example, by setting the variable to 3, neighbor discovery layer
                   1876: will take 3 consecutive hints in maximum.
                   1877: After receiving 3 hints, neighbor discovery layer will perform
                   1878: normal neighbor discovery process.
                   1879: .It Li icmp6.nd6_mmaxtries
                   1880: The variable specifies
                   1881: .Dv MAX_MULTICAST_SOLICIT
                   1882: constant in IPv6 neighbor discovery specification
                   1883: .Pq RFC 2461 .
                   1884: .It Li icmp6.nd6_prune
                   1885: The variable specifies interval between IPv6 neighbor cache babysitting,
                   1886: in seconds.
                   1887: .It Li icmp6.nd6_umaxtries
                   1888: The variable specifies
                   1889: .Dv MAX_UNICAST_SOLICIT
                   1890: constant in IPv6 neighbor discovery specification
                   1891: .Pq RFC 2461 .
                   1892: .It Li icmp6.nd6_useloopback
                   1893: If set to non-zero, kernel IPv6 stack will use loopback interface for
                   1894: local traffic.
                   1895: .It Li icmp6.nodeinfo
                   1896: The variable enables responses to ICMPv6 node information queries.
                   1897: If you set the variable to 0, responses will not be generated for
                   1898: ICMPv6 node information queries.
                   1899: Since node information queries can have a security impact, it is
                   1900: possible to fine tune which responses should be answered.
                   1901: Two separate bits can be set.
                   1902: .Bl -tag -width "12345"
                   1903: .It 1
                   1904: Respond to ICMPv6 FQDN queries, e.g.
                   1905: .Li ping6 -w .
                   1906: .It 2
                   1907: Respond to ICMPv6 node addresses queries, e.g.
                   1908: .Li ping6 -a .
                   1909: .El
                   1910: .It Li icmp6.rediraccept
                   1911: If set to non-zero, the host will accept ICMPv6 redirect packets.
                   1912: Note that IPv6 routers will never accept ICMPv6 redirect packets,
                   1913: and the variable is meaningful on IPv6 hosts
                   1914: .Pq non-router
                   1915: only.
                   1916: .It Li icmp6.redirtimeout
                   1917: The variable specifies lifetime of routing entries generated by incoming
                   1918: ICMPv6 redirect.
                   1919: .It Li udp6.do_loopback_cksum
                   1920: Perform UDP checksum on loopback.
                   1921: .It Li udp6.recvspace
                   1922: Default UDP receive buffer size.
                   1923: .It Li udp6.sendspace
                   1924: Default UDP send buffer size.
                   1925: .El
                   1926: .Pp
                   1927: We reuse net.*.tcp for
                   1928: .Tn TCP
                   1929: over
                   1930: .Tn IPv6 ,
                   1931: and therefore we do not have variables net.*.tcp6.
                   1932: Variables net.inet6.udp6 have identical meaning to net.inet.udp.
                   1933: Please refer to
                   1934: .Li PF_INET
                   1935: section above.
                   1936: For variables net.*.ipsec6, please refer to
                   1937: .Xr ipsec 4 .
1.91      kamil    1938: .It Li net.key ( Dv PF_KEY )
1.1       pavel    1939: Get or set various global information about the IPsec key management.
                   1940: The third level name is the variable name.
                   1941: The currently defined variable and names are:
1.21      joerg    1942: .Bl -column "blockacq_lifetime" "integer" "Changeable" -offset indent
1.92      wiz      1943: .It Sy Variable        Type    Sy Changeable
1.1       pavel    1944: .It debug      integer yes
1.80      christos 1945: .It enabled    integer yes
                   1946: .It used       integer no
1.1       pavel    1947: .It spi_try    integer yes
                   1948: .It spi_min_value      integer yes
                   1949: .It spi_max_value      integer yes
                   1950: .It larval_lifetime    integer yes
                   1951: .It blockacq_count     integer yes
                   1952: .It blockacq_lifetime  integer yes
                   1953: .It esp_keymin integer yes
                   1954: .It esp_auth   integer yes
                   1955: .It ah_keymin  integer yes
                   1956: .El
1.21      joerg    1957: .Pp
1.1       pavel    1958: The variables are as follows:
                   1959: .Bl -tag -width "123456"
                   1960: .It Li debug
                   1961: Turn on debugging message from within the kernel.
                   1962: The value is a bitmap, as defined in
1.56      uwe      1963: .In netkey/key_debug.h .
1.80      christos 1964: .It Li enabled
1.81      christos 1965: Control processing of IPsec control messages.
                   1966: .Bl -tag -width indent
                   1967: .It 0
                   1968: Never allow IPsec processing
                   1969: .It 1
                   1970: Allow IPsec processing when SPD policies are present.
                   1971: .It 2
                   1972: Force IPsec processing even when SPD policies are not present.
                   1973: .El
1.80      christos 1974: .It Li used
                   1975: Based on if IPsec is enabled, and SPD rule existance, show if
                   1976: IPsec is being used.
                   1977: Note that currenly once IPsec is being used, it cannot be disabled.
1.1       pavel    1978: .It Li spi_try
                   1979: The number of times the kernel will try to obtain an unique SPI
                   1980: when it generates it from random number generator.
                   1981: .It Li spi_min_value
                   1982: Minimum SPI value when generating it within the kernel.
                   1983: .It Li spi_max_value
                   1984: Maximum SPI value when generating it within the kernel.
                   1985: .It Li larval_lifetime
                   1986: Lifetime for LARVAL SAD entries, in seconds.
                   1987: .It Li blockacq_count
                   1988: Number of ACQUIRE PF_KEY messages to be blocked after an ACQUIRE message.
                   1989: It avoids flood of ACQUIRE PF_KEY from being sent from the kernel to the
                   1990: key management daemon.
                   1991: .It Li blockacq_lifetime
                   1992: Lifetime of ACQUIRE PF_KEY message.
                   1993: .It Li esp_keymin
                   1994: Minimum ESP key length, in bits.
                   1995: The value is used when the kernel creates proposal payload
                   1996: on ACQUIRE PF_KEY message.
                   1997: .It Li esp_auth
                   1998: Whether ESP authentication should be used or not.
                   1999: Non-zero value indicates that ESP authentication should be used.
                   2000: The value is used when the kernel creates proposal payload
                   2001: on ACQUIRE PF_KEY message.
                   2002: .It Li ah_keymin
                   2003: Minimum AH key length, in bits,
                   2004: The value is used when the kernel creates proposal payload
                   2005: on ACQUIRE PF_KEY message.
                   2006: .El
                   2007: .El
1.50      jruoho   2008: .Ss The proc.* subtree
1.1       pavel    2009: The string and integer information available for the
                   2010: .Li proc
                   2011: level is detailed below.
                   2012: The changeable column shows whether a process with appropriate
                   2013: privilege may change the value.
                   2014: These values are per-process,
                   2015: and as such may change from one process to another.
                   2016: When a process is created,
                   2017: the default values are inherited from its parent.
                   2018: When a set-user-ID or set-group-ID binary is executed, the
                   2019: value of PROC_PID_CORENAME is reset to the system default value.
                   2020: The second level name is either the magic value PROC_CURPROC, which
                   2021: points to the current process, or the PID of the target process.
1.21      joerg    2022: .Bl -column "proc.pid.corename" "string" "not applicable" -offset indent
1.92      wiz      2023: .It Sy Third level name        Sy Type Sy Changeable
1.1       pavel    2024: .It proc.pid.corename  string  yes
                   2025: .It proc.pid.rlimit    node    not applicable
                   2026: .It proc.pid.stopfork  int     yes
                   2027: .It proc.pid.stopexec  int     yes
                   2028: .It proc.pid.stopexit  int     yes
                   2029: .El
                   2030: .Bl -tag -width "123456"
1.91      kamil    2031: .It Li proc.pid.corename ( Dv PROC_PID_CORENAME )
1.1       pavel    2032: The template used for the core dump file name (see
                   2033: .Xr core 5
                   2034: for details).
                   2035: The base name must either be
1.56      uwe      2036: .Pa core
                   2037: or end with the suffix
                   2038: .Pa .core
                   2039: (the super-user may set arbitrary names).
                   2040: By default it points to
                   2041: .Dv KERN_DEFCORENAME .
1.91      kamil    2042: .It Li proc.pid.rlimit ( Dv PROC_PID_LIMIT )
1.1       pavel    2043: Return resources limits, as defined for the
                   2044: .Xr getrlimit 2
                   2045: and
                   2046: .Xr setrlimit 2
                   2047: system calls.
                   2048: The fourth level name is one of:
1.56      uwe      2049: .Bl -tag -width "123456"
1.91      kamil    2050: .It Li proc.pid.rlimit.cputime ( Dv PROC_PID_LIMIT_CPU )
1.1       pavel    2051: The maximum amount of CPU time (in seconds) to be used by each process.
1.91      kamil    2052: .It Li proc.pid.rlimit.filesize ( Dv PROC_PID_LIMIT_FSIZE )
1.1       pavel    2053: The largest size (in bytes) file that may be created.
1.91      kamil    2054: .It Li proc.pid.rlimit.datasize ( Dv PROC_PID_LIMIT_DATA )
1.1       pavel    2055: The maximum size (in bytes) of the data segment for a process;
                   2056: this defines how far a program may extend its break with the
                   2057: .Xr sbrk 2
                   2058: system call.
1.91      kamil    2059: .It Li proc.pid.rlimit.stacksize ( Dv PROC_PID_LIMIT_STACK )
1.1       pavel    2060: The maximum size (in bytes) of the stack segment for a process;
                   2061: this defines how far a program's stack segment may be extended.
                   2062: Stack extension is performed automatically by the system.
1.91      kamil    2063: .It Li proc.pid.rlimit.coredumpsize ( Dv PROC_PID_LIMIT_CORE )
1.1       pavel    2064: The largest size (in bytes)
                   2065: .Pa core
                   2066: file that may be created.
1.91      kamil    2067: .It Li proc.pid.rlimit.memoryuse ( Dv PROC_PID_LIMIT_RSS )
1.1       pavel    2068: The maximum size (in bytes) to which a process's resident set size may
                   2069: grow.
                   2070: This imposes a limit on the amount of physical memory to be given to
                   2071: a process; if memory is tight, the system will prefer to take memory
                   2072: from processes that are exceeding their declared resident set size.
1.91      kamil    2073: .It Li proc.pid.rlimit.memorylocked ( Dv PROC_PID_LIMIT_MEMLOCK )
1.1       pavel    2074: The maximum size (in bytes) which a process may lock into memory
                   2075: using the
                   2076: .Xr mlock 2
                   2077: function.
1.91      kamil    2078: .It Li proc.pid.rlimit.maxproc ( Dv PROC_PID_LIMIT_NPROC )
1.1       pavel    2079: The maximum number of simultaneous processes for this user id.
1.91      kamil    2080: .It Li proc.pid.rlimit.descriptors ( Dv PROC_PID_LIMIT_NOFILE )
1.1       pavel    2081: The maximum number of open files for this process.
1.91      kamil    2082: .It Li proc.pid.rlimit.sbsize ( Dv PROC_PID_LIMIT_SBSIZE )
1.22      snj      2083: The maximum size (in bytes) of the socket buffers
                   2084: set by the
                   2085: .Xr setsockopt 2
                   2086: .Dv SO_RCVBUF
                   2087: and
                   2088: .Dv SO_SNDBUF
                   2089: options.
1.91      kamil    2090: .It Li proc.pid.rlimit.vmemoryuse ( Dv PROC_PID_LIMIT_AS )
1.88      kamil    2091: The maximum size (in bytes) which a process can obtain.
1.91      kamil    2092: .It Li proc.pid.rlimit.maxlwp ( Dv PROC_PID_LIMIT_NTHR )
1.88      kamil    2093: The maximum number of threads that cen be created and running at one time in
                   2094: the process.
                   2095: The first thread of each process is not counted against this.
1.1       pavel    2096: .El
                   2097: .Pp
                   2098: The fifth level name is one of
1.91      kamil    2099: .Li soft ( Dv PROC_PID_LIMIT_TYPE_SOFT )
1.56      uwe      2100: or
1.91      kamil    2101: .Li hard ( Dv PROC_PID_LIMIT_TYPE_HARD ) ,
1.1       pavel    2102: to select respectively the soft or hard limit.
                   2103: Both are of type integer.
1.91      kamil    2104: .It Li proc.pid.stopfork ( Dv PROC_PID_STOPFORK )
1.1       pavel    2105: If non zero, the process' children will be stopped after
                   2106: .Xr fork 2
                   2107: calls.
                   2108: The children is created in the SSTOP state and is never scheduled
                   2109: for running before being stopped.
                   2110: This feature helps attaching a process with a debugger such as
                   2111: .Xr gdb 1
                   2112: before it had the opportunity to actually do anything.
                   2113: .Pp
                   2114: This value is inherited by the process's children, and it also
                   2115: apply to emulation specific system calls that fork a new process, such as
                   2116: .Fn sproc
                   2117: or
                   2118: .Fn clone .
1.91      kamil    2119: .It Li proc.pid.stopexec ( Dv PROC_PID_STOPEXEC )
1.1       pavel    2120: If non zero, the process will be stopped on next
                   2121: .Xr exec 3
                   2122: call.
                   2123: The process created by
                   2124: .Xr exec 3
                   2125: is created in the SSTOP state and is never scheduled for running
                   2126: before being stopped.
                   2127: This feature helps attaching a process with a debugger such as
                   2128: .Xr gdb 1
                   2129: before it had the opportunity to actually do anything.
                   2130: .Pp
                   2131: This value is inherited by the process's children.
1.91      kamil    2132: .It Li proc.pid.stopexit ( Dv PROC_PID_STOPEXIT )
1.1       pavel    2133: If non zero, the process will be stopped on when it has cause to exit,
                   2134: either by way of calling
                   2135: .Xr exit 3 ,
                   2136: .Xr _exit 2 ,
                   2137: or by the receipt of a specific signal.
                   2138: The process is stopped before any of its resources or vm space is
                   2139: released allowing examination of the termination state of a process
                   2140: before it disappears.
                   2141: This feature can be used to examine the final conditions of the
                   2142: process's vmspace via
                   2143: .Xr pmap 1
                   2144: or its resource settings with
                   2145: .Xr sysctl 8
                   2146: before it disappears.
                   2147: .Pp
                   2148: This value is also inherited by the process's children.
                   2149: .El
1.91      kamil    2150: .Ss The user.* subtree ( Dv CTL_USER )
1.1       pavel    2151: The string and integer information available for the
                   2152: .Li user
                   2153: level is detailed below.
                   2154: The changeable column shows whether a process with appropriate
                   2155: privilege may change the value.
1.21      joerg    2156: .Bl -column "user.coll_weights_max" "integer" "Changeable" -offset indent
1.92      wiz      2157: .It Sy Second level name       Sy Type Sy Changeable
1.1       pavel    2158: .It user.atexit_max    integer no
                   2159: .It user.bc_base_max   integer no
                   2160: .It user.bc_dim_max    integer no
                   2161: .It user.bc_scale_max  integer no
                   2162: .It user.bc_string_max integer no
                   2163: .It user.coll_weights_max      integer no
                   2164: .It user.cs_path       string  no
                   2165: .It user.expr_nest_max integer no
                   2166: .It user.line_max      integer no
                   2167: .It user.posix2_c_bind integer no
                   2168: .It user.posix2_c_dev  integer no
                   2169: .It user.posix2_char_term      integer no
                   2170: .It user.posix2_fort_dev       integer no
                   2171: .It user.posix2_fort_run       integer no
                   2172: .It user.posix2_localedef      integer no
                   2173: .It user.posix2_sw_dev integer no
                   2174: .It user.posix2_upe    integer no
                   2175: .It user.posix2_version        integer no
                   2176: .It user.re_dup_max    integer no
                   2177: .It user.stream_max    integer no
                   2178: .It user.stream_max    integer no
                   2179: .It user.tzname_max    integer no
                   2180: .El
                   2181: .Bl -tag -width "123456"
1.91      kamil    2182: .It Li user.atexit_max ( Dv USER_ATEXIT_MAX )
1.1       pavel    2183: The maximum number of functions that may be registered with
                   2184: .Xr atexit 3 .
1.91      kamil    2185: .It Li user.bc_base_max ( Dv USER_BC_BASE_MAX )
1.1       pavel    2186: The maximum ibase/obase values in the
                   2187: .Xr bc 1
                   2188: utility.
1.91      kamil    2189: .It Li user.bc_dim_max ( Dv USER_BC_DIM_MAX )
1.1       pavel    2190: The maximum array size in the
                   2191: .Xr bc 1
                   2192: utility.
1.91      kamil    2193: .It Li user.bc_scale_max ( Dv USER_BC_SCALE_MAX )
1.1       pavel    2194: The maximum scale value in the
                   2195: .Xr bc 1
                   2196: utility.
1.91      kamil    2197: .It Li user.bc_string_max ( Dv USER_BC_STRING_MAX )
1.1       pavel    2198: The maximum string length in the
                   2199: .Xr bc 1
                   2200: utility.
1.91      kamil    2201: .It Li user.coll_weights_max ( Dv USER_COLL_WEIGHTS_MAX )
1.1       pavel    2202: The maximum number of weights that can be assigned to any entry of
                   2203: the LC_COLLATE order keyword in the locale definition file.
                   2204: .It Li user.cs_path ( USER_CS_PATH )
                   2205: Return a value for the
                   2206: .Ev PATH
                   2207: environment variable that finds all the standard utilities.
1.91      kamil    2208: .It Li user.expr_nest_max ( Dv USER_EXPR_NEST_MAX )
1.1       pavel    2209: The maximum number of expressions that can be nested within
                   2210: parenthesis by the
                   2211: .Xr expr 1
                   2212: utility.
1.91      kamil    2213: .It Li user.line_max ( Dv USER_LINE_MAX )
1.1       pavel    2214: The maximum length in bytes of a text-processing utility's input
                   2215: line.
1.91      kamil    2216: .It Li user.posix2_char_term ( Dv USER_POSIX2_CHAR_TERM )
1.1       pavel    2217: Return 1 if the system supports at least one terminal type capable of
1.58      wiz      2218: all operations described in
                   2219: .St -p1003.2 ,
                   2220: otherwise\ 0.
1.91      kamil    2221: .It Li user.posix2_c_bind ( Dv USER_POSIX2_C_BIND )
1.1       pavel    2222: Return 1 if the system's C-language development facilities support the
1.56      uwe      2223: C-Language Bindings Option, otherwise\ 0.
1.91      kamil    2224: .It Li user.posix2_c_dev ( Dv USER_POSIX2_C_DEV )
1.1       pavel    2225: Return 1 if the system supports the C-Language Development Utilities Option,
1.56      uwe      2226: otherwise\ 0.
1.91      kamil    2227: .It Li user.posix2_fort_dev ( Dv USER_POSIX2_FORT_DEV )
1.1       pavel    2228: Return 1 if the system supports the FORTRAN Development Utilities Option,
1.56      uwe      2229: otherwise\ 0.
1.91      kamil    2230: .It Li user.posix2_fort_run ( Dv USER_POSIX2_FORT_RUN )
1.1       pavel    2231: Return 1 if the system supports the FORTRAN Runtime Utilities Option,
1.56      uwe      2232: otherwise\ 0.
1.91      kamil    2233: .It Li user.posix2_localedef ( Dv USER_POSIX2_LOCALEDEF )
1.56      uwe      2234: Return 1 if the system supports the creation of locales, otherwise\ 0.
1.91      kamil    2235: .It Li user.posix2_sw_dev ( Dv USER_POSIX2_SW_DEV )
1.1       pavel    2236: Return 1 if the system supports the Software Development Utilities Option,
1.56      uwe      2237: otherwise\ 0.
1.91      kamil    2238: .It Li user.posix2_upe ( Dv USER_POSIX2_UPE )
1.1       pavel    2239: Return 1 if the system supports the User Portability Utilities Option,
1.56      uwe      2240: otherwise\ 0.
1.91      kamil    2241: .It Li user.posix2_version ( Dv USER_POSIX2_VERSION )
1.58      wiz      2242: The version of
                   2243: .St -p1003.2
                   2244: with which the system attempts to comply.
1.91      kamil    2245: .It Li user.re_dup_max ( Dv USER_RE_DUP_MAX )
1.1       pavel    2246: The maximum number of repeated occurrences of a regular expression
                   2247: permitted when using interval notation.
1.91      kamil    2248: .It Li user.stream_max ( Dv USER_STREAM_MAX )
1.1       pavel    2249: The minimum maximum number of streams that a process may have open
                   2250: at any one time.
1.91      kamil    2251: .It Li user.tzname_max ( Dv USER_TZNAME_MAX )
1.1       pavel    2252: The minimum maximum number of types supported for the name of a
                   2253: timezone.
                   2254: .El
1.91      kamil    2255: .Ss The vm.* subtree ( Dv CTL_VM )
1.1       pavel    2256: The string and integer information available for the
                   2257: .Li vm
                   2258: level is detailed below.
                   2259: The changeable column shows whether a process with appropriate
                   2260: privilege may change the value.
1.21      joerg    2261: .Bl -column "Second level name" "struct uvmexp_sysctl" "Changeable" -offset indent
1.92      wiz      2262: .It Sy Second level name       Sy Type Sy Changeable
1.1       pavel    2263: .It vm.anonmax int     yes
                   2264: .It vm.anonmin int     yes
                   2265: .It vm.bufcache        int     yes
                   2266: .It vm.bufmem  int     no
                   2267: .It vm.bufmem_hiwater  int     yes
                   2268: .It vm.bufmem_lowater  int     yes
                   2269: .It vm.execmax int     yes
                   2270: .It vm.execmin int     yes
                   2271: .It vm.filemax int     yes
                   2272: .It vm.filemin int     yes
                   2273: .It vm.loadavg struct loadavg  no
                   2274: .It vm.maxslp  int     no
                   2275: .It vm.nkmempages      int     no
                   2276: .It vm.uspace  int     no
                   2277: .It vm.uvmexp  struct uvmexp   no
                   2278: .It vm.uvmexp2 struct uvmexp_sysctl    no
                   2279: .It vm.vmmeter struct vmtotal  no
1.93      christos 2280: .It vm.proc.map        struct kinfo_vmentry    no
1.1       pavel    2281: .El
                   2282: .Bl -tag -width "123456"
1.91      kamil    2283: .It Li vm.anonmax ( Dv VM_ANONMAX )
1.1       pavel    2284: The percentage of physical memory which will be reclaimed
                   2285: from other types of memory usage to store anonymous application data.
1.91      kamil    2286: .It Li vm.anonmin ( Dv VM_ANONMIN )
1.1       pavel    2287: The percentage of physical memory which will be always be available for
                   2288: anonymous application data.
1.91      kamil    2289: .It Li vm.bufcache ( Dv VM_BUFCACHE )
1.1       pavel    2290: The percentage of physical memory which will be available
                   2291: for the buffer cache.
1.91      kamil    2292: .It Li vm.bufmem ( Dv VM_BUFMEM )
1.1       pavel    2293: The amount of kernel memory that is being used by the buffer cache.
1.91      kamil    2294: .It Li vm.bufmem_lowater ( Dv VM_BUFMEM_LOWATER )
1.1       pavel    2295: The minimum amount of kernel memory to reserve for the
                   2296: buffer cache.
1.91      kamil    2297: .It Li vm.bufmem_hiwater ( Dv VM_BUFMEM_HIWATER )
1.1       pavel    2298: The maximum amount of kernel memory to be used for the
                   2299: buffer cache.
1.91      kamil    2300: .It Li vm.execmax ( Dv VM_EXECMAX )
1.1       pavel    2301: The percentage of physical memory which will be reclaimed
                   2302: from other types of memory usage to store cached executable data.
1.91      kamil    2303: .It Li vm.execmin ( Dv VM_EXECMIN )
1.1       pavel    2304: The percentage of physical memory which will be always be available for
                   2305: cached executable data.
1.91      kamil    2306: .It Li vm.filemax ( Dv VM_FILEMAX )
1.1       pavel    2307: The percentage of physical memory which will be reclaimed
                   2308: from other types of memory usage to store cached file data.
1.91      kamil    2309: .It Li vm.filemin ( Dv VM_FILEMIN )
1.1       pavel    2310: The percentage of physical memory which will be always be available for
                   2311: cached file data.
1.91      kamil    2312: .It Li vm.loadavg ( Dv VM_LOADAVG )
1.1       pavel    2313: Return the load average history.
                   2314: The returned data consists of a
1.56      uwe      2315: .Vt struct loadavg .
1.91      kamil    2316: .It Li vm.maxslp ( Dv VM_MAXSLP )
1.1       pavel    2317: The value of the maxslp kernel global variable.
1.91      kamil    2318: .It Li vm.vmmeter ( Dv VM_METER )
1.1       pavel    2319: Return system wide virtual memory statistics.
                   2320: The returned data consists of a
1.56      uwe      2321: .Vt struct vmtotal .
1.31      drochner 2322: .It vm.user_va0_disable
1.56      uwe      2323: A flag which controls whether user processes can map virtual address\ 0.
1.93      christos 2324: .It Li vm.proc.map ( Dv VM_PROC )
1.94      wiz      2325: The third level is
1.93      christos 2326: .dv VM_PROC_MAP ,
                   2327: the fourth is the pid of the process to display the vm object entries for, and
                   2328: the fifth is the size of
                   2329: .Vt struct kinfo_vmentry .
                   2330: Returns an array of
                   2331: .Vt struct kinfo_vmentry
                   2332: objects.
1.91      kamil    2333: .It Li vm.uspace ( Dv VM_USPACE )
1.1       pavel    2334: The number of bytes allocated for each kernel stack.
1.91      kamil    2335: .It Li vm.uvmexp ( Dv VM_UVMEXP )
1.1       pavel    2336: Return system wide virtual memory statistics.
                   2337: The returned data consists of a
1.56      uwe      2338: .Vt struct uvmexp .
1.91      kamil    2339: .It Li vm.uvmexp2 ( Dv VM_UVMEXP2 )
1.1       pavel    2340: Return system wide virtual memory statistics.
                   2341: The returned data consists of a
1.56      uwe      2342: .Vt struct uvmexp_sysctl .
1.1       pavel    2343: .\" XXX vm.idlezero
                   2344: .El
1.91      kamil    2345: .Ss The ddb.* subtree ( Dv CTL_DDB )
1.34      jruoho   2346: The information available for the
1.1       pavel    2347: .Li ddb
                   2348: level is detailed below.
                   2349: The changeable column shows whether a process with appropriate
                   2350: privilege may change the value.
                   2351: .\" XXX sort
1.21      joerg    2352: .Bl -column "Second level name" "integer" "Changeable" -offset indent
1.92      wiz      2353: .It Sy Second level name       Sy Type Sy Changeable
1.1       pavel    2354: .It ddb.radix  integer yes
                   2355: .It ddb.maxoff integer yes
1.34      jruoho   2356: .It ddb.maxwidth       integer yes
1.1       pavel    2357: .It ddb.lines  integer yes
                   2358: .It ddb.tabstops       integer yes
                   2359: .It ddb.onpanic        integer yes
                   2360: .It ddb.fromconsole    integer yes
1.34      jruoho   2361: .It ddb.tee_msgbuf     integer yes
                   2362: .It ddb.commandonenter string  yes
1.1       pavel    2363: .El
                   2364: .Bl -tag -width "123456"
1.91      kamil    2365: .It Li ddb.radix ( Dv DDBCTL_RADIX )
1.1       pavel    2366: The input and output radix.
1.91      kamil    2367: .It Li ddb.maxoff ( Dv DDBCTL_MAXOFF )
1.1       pavel    2368: The maximum symbol offset.
1.91      kamil    2369: .It Li ddb.maxwidth ( Dv DDBCTL_MAXWIDTH )
1.34      jruoho   2370: The maximum output line width.
1.91      kamil    2371: .It Li ddb.lines ( Dv DDBCTL_LINES )
1.1       pavel    2372: Number of display lines.
1.91      kamil    2373: .It Li ddb.tabstops ( Dv DDBCTL_TABSTOPS )
1.1       pavel    2374: Tab width.
1.91      kamil    2375: .It Li ddb.onpanic ( Dv DDBCTL_ONPANIC )
1.63      riz      2376: If greater than zero, DDB will be entered if the kernel panics.
                   2377: A value of 1 causes the system to enter DDB on panic, while a value of 2
                   2378: causes the kernel to attempt to print out a stack trace before entering DDB.
                   2379: A value of 0 causes the kernel to attempt to print a stack trace, then
1.64      wiz      2380: reboot, while a value of \-1 means neither a stack trace will be printed
1.63      riz      2381: nor DDB entered.
1.91      kamil    2382: .It Li ddb.fromconsole ( Dv DDBCTL_FROMCONSOLE )
1.1       pavel    2383: If not zero, DDB may be entered by sending a break on a serial
                   2384: console or by a special key sequence on a graphics console.
1.34      jruoho   2385: .It Li ddb.tee_msgbuf
                   2386: If not zero, DDB will output also to the kernel message buffer.
                   2387: .It Li ddb.commandonenter
                   2388: If not empty, a command to be executed on each enter to the
                   2389: .Tn DDB .
                   2390: .\"
                   2391: .\" XXX: (a) ddb.commandonenter is missing in ddb(4);
                   2392: .\"     (b) No DDBCTL definitions for tee_msgbuf and commandonenter.
1.1       pavel    2393: .El
                   2394: .Pp
1.34      jruoho   2395: Some of these
                   2396: .Tn MIB
                   2397: nodes are also available as variables from within the debugger.
1.1       pavel    2398: See
                   2399: .Xr ddb 4
                   2400: for more details.
1.91      kamil    2401: .Ss The security.* subtree ( Dv CTL_SECURITY )
1.1       pavel    2402: The
                   2403: .Li security
                   2404: level contains various security-related settings for
1.2       wiz      2405: the system.
1.43      jruoho   2406: The available second level names are:
                   2407: .Bl -column "Second level name" "integer" "Changeable" -offset indent
1.92      wiz      2408: .It Sy Second level name       Sy Type Sy Changeable
1.43      jruoho   2409: .It Li security.curtain        integer yes
                   2410: .It Li security.models node    not applicable
                   2411: .It Li security.pax    node    not applicable
                   2412: .El
                   2413: .Pp
1.2       wiz      2414: Available settings are detailed below.
1.1       pavel    2415: .Bl -tag -width "123456"
                   2416: .It Li security.curtain
1.43      jruoho   2417: If non-zero, will filter return objects according to the user
                   2418: .Tn ID
1.95      pgoyette 2419: requesting information about them, preventing users from
                   2420: accessing any objects they do not own.
1.1       pavel    2421: .Pp
                   2422: At the moment, it affects
                   2423: .Xr ps 1 ,
                   2424: .Xr netstat 1
                   2425: (for
                   2426: .Dv PF_INET ,
                   2427: .Dv PF_INET6 ,
                   2428: and
                   2429: .Dv PF_UNIX
                   2430: PCBs), and
                   2431: .Xr w 1 .
1.4       elad     2432: .It Li security.models
                   2433: .Nx
                   2434: supports pluggable security models.
1.17      ad       2435: Every security model used, whether if loaded as a module or built with the system,
1.4       elad     2436: is required to add an entry to this node with at least one element,
                   2437: .Dq name ,
                   2438: indicating the name of the security model.
                   2439: .Pp
                   2440: In addition to the name, any settings and other information private to the
                   2441: security model will be available under this node.
                   2442: See
                   2443: .Xr secmodel 9
                   2444: for more information.
1.1       pavel    2445: .It Li security.pax
                   2446: Settings for PaX -- exploit mitigation features.
1.4       elad     2447: For more information on any of the PaX features, please see
                   2448: .Xr paxctl 8
                   2449: and
1.62      jruoho   2450: .Xr security 7 .
1.43      jruoho   2451: The available third and fourth level names are:
                   2452: .Bl -column "security.pax.segvguard.suspend_timeout" "integer" "Changeable" \
                   2453: -offset 2n
                   2454: .It Sy Third and fourth level names Ta Sy Type Ta Sy Changeable
                   2455: .It Li security.pax.aslr.enabled       integer yes
                   2456: .\".It Li security.pax.aslr.exec_len   integer yes
                   2457: .It Li security.pax.aslr.global        integer yes
                   2458: .\".It Li security.pax.aslr.mmap_len   integer yes
                   2459: .\".It Li security.pax.aslr.stack_len  integer yes
                   2460: .It Li security.pax.mprotect.enabled   integer yes
                   2461: .It Li security.pax.mprotect.global    integer yes
1.100     christos 2462: .It Li security.pax.mprotect.ptrace    integer yes
1.43      jruoho   2463: .It Li security.pax.segvguard.enabled  integer yes
                   2464: .It Li security.pax.segvguard.expiry_timeout   integer yes
                   2465: .It Li security.pax.segvguard.global   integer yes
                   2466: .It Li security.pax.segvguard.max_crashes      integer yes
                   2467: .It Li security.pax.segvguard.suspend_timeout  integer yes
                   2468: .El
1.1       pavel    2469: .Bl -tag -width "123456"
1.43      jruoho   2470: .It Li security.pax.aslr.enabled
1.14      elad     2471: Enable PaX ASLR (Address Space Layout Randomization).
                   2472: .Pp
                   2473: The value of this
                   2474: knob must be non-zero for PaX ASLR to be enabled, even if a program is set to
                   2475: explicit enable.
1.43      jruoho   2476: .\".It Li security.pax.aslr.exec_len
                   2477: .\" XXX: Undocumented.
1.14      elad     2478: .It Li security.pax.aslr.global
                   2479: Specifies the default global policy for programs without an
                   2480: explicit enable/disable flag.
                   2481: .Pp
                   2482: When non-zero, all programs will get PaX ASLR, except those exempted with
1.69      wiz      2483: .Xr paxctl 8 .
1.14      elad     2484: Otherwise, all programs will not get PaX ASLR, except those specifically
                   2485: marked as such with
                   2486: .Xr paxctl 8 .
1.43      jruoho   2487: .\".It Li security.pax.aslr.mmap_len
                   2488: .\" XXX: Undocumented.
                   2489: .\" .It Li security.pax.aslr.stack_len
                   2490: .\" XXX: Undocumented.
                   2491: .It Li security.pax.mprotect.enabled
1.1       pavel    2492: Enable PaX MPROTECT restrictions.
                   2493: .Pp
                   2494: These are
                   2495: .Xr mprotect 2
1.2       wiz      2496: restrictions to better enforce a W^X policy.
                   2497: The value of this
1.1       pavel    2498: knob must be non-zero for PaX MPROTECT to be enabled, even if a
                   2499: program is set to explicit enable.
                   2500: .It Li security.pax.mprotect.global
                   2501: Specifies the default global policy for programs without an
                   2502: explicit enable/disable flag.
                   2503: .Pp
                   2504: When non-zero, all programs will get the PaX MPROTECT restrictions,
                   2505: except those exempted with
1.69      wiz      2506: .Xr paxctl 8 .
1.1       pavel    2507: Otherwise, all programs will not get the PaX MPROTECT restrictions,
                   2508: except those specifically marked as such with
1.4       elad     2509: .Xr paxctl 8 .
1.100     christos 2510: .It Li security.pax.mprotect.ptrace
                   2511: This variable allows
                   2512: .Xr ptrace 2
                   2513: to override PaX MPROTECT permissions.
                   2514: It can have the following values:
                   2515: .Bl -tag -width XX -compact
                   2516: .It 0
                   2517: Does not let override any permissions.
                   2518: .It 1
                   2519: Disables PaX MPROTECT from processes that start executing while traced (default).
                   2520: .It 2
                   2521: Bypasses PaX MPROTECT for all processes being traced.
                   2522: .El
1.43      jruoho   2523: .It Li security.pax.segvguard.enabled
1.1       pavel    2524: Enable PaX Segvguard.
                   2525: .Pp
                   2526: PaX Segvguard can detect and prevent certain exploitation attempts, where
                   2527: an attacker may try for example to brute-force function return addresses
                   2528: of respawning daemons.
                   2529: .Pp
                   2530: .Em Note :
                   2531: The
                   2532: .Nx
                   2533: interface and implementation of the Segvguard is still experimental, and may
                   2534: change in future releases.
1.43      jruoho   2535: .It Li security.pax.segvguard.expiry_timeout
                   2536: If the max number was not reached within this timeout (in seconds), the entry
                   2537: will expire.
1.1       pavel    2538: .It Li security.pax.segvguard.global
                   2539: Specifies the default global policy for programs without an
                   2540: explicit enable/disable flag.
                   2541: .Pp
                   2542: When non-zero, all programs will get the PaX Segvguard,
                   2543: except those exempted with
1.69      wiz      2544: .Xr paxctl 8 .
1.2       wiz      2545: Otherwise, no program will get the PaX Segvguard restrictions,
1.1       pavel    2546: except those specifically marked as such with
1.4       elad     2547: .Xr paxctl 8 .
1.43      jruoho   2548: .It Li security.pax.segvguard.max_crashes
                   2549: The maximum number of segfaults a program can receive before suspension.
1.1       pavel    2550: .It Li security.pax.segvguard.suspend_timeout
                   2551: Number of seconds to suspend a user from running a faulting program when the
                   2552: limit was exceeded.
                   2553: .El
                   2554: .El
1.91      kamil    2555: .Ss The vendor.* subtree ( Dv CTL_VENDOR )
1.1       pavel    2556: The
                   2557: .Li vendor
                   2558: toplevel name is reserved to be used by vendors who wish to
                   2559: have their own private MIB tree.
                   2560: Intended use is to store values under
                   2561: .Dq vendor.\*[Lt]yourname\*[Gt].* .
                   2562: .Sh SEE ALSO
                   2563: .Xr sysctl 3 ,
                   2564: .Xr ipsec 4 ,
                   2565: .Xr tcp 4 ,
1.62      jruoho   2566: .Xr security 7 ,
1.1       pavel    2567: .Xr sysctl 8
                   2568: .Sh HISTORY
                   2569: The
                   2570: .Nm
                   2571: variables first appeared in
                   2572: .Bx 4.4 .

CVSweb <webmaster@jp.NetBSD.org>