-.\" $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.
.\" 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
.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"
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