summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/libc/sys/sysctl.253
1 files changed, 51 insertions, 2 deletions
diff --git a/lib/libc/sys/sysctl.2 b/lib/libc/sys/sysctl.2
index f11c226ca39..30090c68909 100644
--- a/lib/libc/sys/sysctl.2
+++ b/lib/libc/sys/sysctl.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sysctl.2,v 1.43 2021/01/13 16:28:49 cheloha Exp $
+.\" $OpenBSD: sysctl.2,v 1.44 2021/05/18 05:26:26 claudio Exp $
.\"
.\" Copyright (c) 1993
.\" The Regents of the University of California. All rights reserved.
@@ -27,7 +27,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: January 13 2021 $
+.Dd $Mdocdate: May 18 2021 $
.Dt SYSCTL 2
.Os
.Sh NAME
@@ -1214,6 +1214,7 @@ privileges may change the value.
.It Dv PF_ROUTE Ta "routing messages" Ta "no"
.It Dv PF_INET Ta "IPv4 values" Ta "yes"
.It Dv PF_INET6 Ta "IPv6 values" Ta "yes"
+.It Dv PF_UNIX Ta "UNIX-domain values" Ta "yes"
.It Dv PF_KEY Ta "key management" Ta "no"
.It Dv PF_MPLS Ta "MPLS values" Ta "yes"
.It Dv PF_PIPEX Ta "PIPEX values" Ta "yes"
@@ -2001,6 +2002,54 @@ We reuse
and
.Li net.inet.udp
for TCP/UDP over IPv6.
+.It Dv PF_UNIX
+Get or set various global information about UNIX-domain protocol family.
+The third level name is the socket type.
+The fourth level name is the variable name.
+The currently defined socket types and names are:
+.Bl -column "Protocol name" "ipsec-expire-acquire" "structure" "Changeable" -offset 2n
+.It Sy "Socket type" Ta Sy "Variable name" Ta Sy "Type" Ta Sy "Changeable"
+.It stream Ta recvspace Ta integer Ta yes
+.It stream Ta sendspace Ta integer Ta yes
+.It dgram Ta recvspace Ta integer Ta yes
+.It dgram Ta sendspace Ta integer Ta yes
+.It seqpacket Ta recvspace Ta integer Ta yes
+.It seqpacket Ta sendspace Ta integer Ta yes
+.It inflight Ta Ta integer Ta no
+.It deferred Ta Ta integer Ta no
+.El
+.Pp
+The variables are as follows:
+.Bl -tag -width "123456"
+.It Li stream.recvspace Pq Va net.unix.stream.recvspace
+Returns the default
+.Dv SOCK_STREAM
+receive buffer size.
+.It Li stream.sendspace Pq Va net.unix.stream.sendspace
+Returns the default
+.Dv SOCK_STREAM
+send buffer size.
+.It Li dgram.recvspace Pq Va net.unix.dgram.recvspace
+Returns the default
+.Dv SOCK_DGRAM
+receive buffer size.
+.It Li dgram.sendspace Pq Va net.unix.dgram.sendspace
+Returns the default
+.Dv SOCK_DGRAM
+send buffer size.
+.It Li seqpacket.recvspace Pq Va net.unix.seqpacket.recvspace
+Returns the default
+.Dv SOCK_SEQPACKET
+receive buffer size.
+.It Li seqpacket.sendspace Pq Va net.unix.seqpacket.sendspace
+Returns the default
+.Dv SOCK_SEQPACKET
+send buffer size.
+.It Li inflight Pq Va net.unix.inflight
+Returns the number of file descriptors inflight.
+.It Li deferred Pq Va net.unix.deferred
+Returns the number of file descriptors to be closed.
+.El
.It Dv PF_KEY
Return
.Xr ipsec 4