summaryrefslogtreecommitdiff
path: root/sys/kern/uipc_socket.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2024-04-02 14:23:16 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2024-04-02 14:23:16 +0000
commit3d0c99c665662779e334d016da72cfe3615d73f8 (patch)
tree102d16991e42c6e9a8a0e3781a69e27eb6bfd137 /sys/kern/uipc_socket.c
parentc70b8e1c48fbf82d72fb9dc03cc862ea7a64fbd1 (diff)
Implement SO_ACCEPTCONN in getsockopt(2)
Requested by robert@ OK mvs@ millert@ deraadt@
Diffstat (limited to 'sys/kern/uipc_socket.c')
-rw-r--r--sys/kern/uipc_socket.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c
index 97f53cff0c9..8c33b9defd6 100644
--- a/sys/kern/uipc_socket.c
+++ b/sys/kern/uipc_socket.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_socket.c,v 1.326 2024/04/02 12:21:39 mvs Exp $ */
+/* $OpenBSD: uipc_socket.c,v 1.327 2024/04/02 14:23:15 claudio Exp $ */
/* $NetBSD: uipc_socket.c,v 1.21 1996/02/04 02:17:52 christos Exp $ */
/*
@@ -2050,6 +2050,7 @@ sogetopt(struct socket *so, int level, int optname, struct mbuf *m)
case SO_REUSEPORT:
case SO_BROADCAST:
case SO_OOBINLINE:
+ case SO_ACCEPTCONN:
case SO_TIMESTAMP:
case SO_ZEROIZE:
*mtod(m, int *) = so->so_options & optname;