From 4ccf9104d3f48d965de0836008e42abe253cb192 Mon Sep 17 00:00:00 2001 From: claudio Date: Mon, 17 May 2021 17:54:31 +0000 Subject: [PATCH] Forgot this directory in last commit for the UNIX-domain socket buffer change. --- sys/sys/socket.h | 30 +++++++++++++++++++++++++++++- sys/sys/sysctl.h | 3 ++- 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/sys/sys/socket.h b/sys/sys/socket.h index f19ed5994a8..a8a11a988ff 100644 --- a/sys/sys/socket.h +++ b/sys/sys/socket.h @@ -1,4 +1,4 @@ -/* $OpenBSD: socket.h,v 1.99 2020/10/29 21:15:27 denis Exp $ */ +/* $OpenBSD: socket.h,v 1.100 2021/05/17 17:54:31 claudio Exp $ */ /* $NetBSD: socket.h,v 1.14 1996/02/09 18:25:36 christos Exp $ */ /* @@ -382,6 +382,34 @@ struct sockpeercred { { "source", CTLTYPE_STRUCT }, \ } +/* + * PF_UNIX - unix socket tunables + */ +#define NET_UNIX_INFLIGHT 6 +#define NET_UNIX_DEFERRED 7 +#define NET_UNIX_MAXID 8 + +#define CTL_NET_UNIX_NAMES { \ + { 0, 0 }, \ + { "stream", CTLTYPE_NODE }, \ + { "dgram", CTLTYPE_NODE }, \ + { 0, 0 }, \ + { 0, 0 }, \ + { "seqpacket", CTLTYPE_NODE }, \ + { "inflight", CTLTYPE_INT }, \ + { "deferred", CTLTYPE_INT }, \ +} + +#define UNPCTL_RECVSPACE 1 +#define UNPCTL_SENDSPACE 2 +#define NET_UNIX_PROTO_MAXID 3 + +#define CTL_NET_UNIX_PROTO_NAMES { \ + { 0, 0 }, \ + { "recvspace", CTLTYPE_INT }, \ + { "sendspace", CTLTYPE_INT }, \ +} + /* * PF_LINK - link layer or device tunables */ diff --git a/sys/sys/sysctl.h b/sys/sys/sysctl.h index 93a4b955d05..afdc0689dee 100644 --- a/sys/sys/sysctl.h +++ b/sys/sys/sysctl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sysctl.h,v 1.217 2021/05/04 21:57:15 bluhm Exp $ */ +/* $OpenBSD: sysctl.h,v 1.218 2021/05/17 17:54:31 claudio Exp $ */ /* $NetBSD: sysctl.h,v 1.16 1996/04/09 20:55:36 cgd Exp $ */ /* @@ -1076,6 +1076,7 @@ int pflow_sysctl(int *, u_int, void *, size_t *, void *, size_t); int pipex_sysctl(int *, u_int, void *, size_t *, void *, size_t); int mpls_sysctl(int *, u_int, void *, size_t *, void *, size_t); int pf_sysctl(void *, size_t *, void *, size_t); +int uipc_sysctl(int *, u_int, void *, size_t *, void *, size_t); #else /* !_KERNEL */ -- 2.20.1