Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern POSIX says getsockopt(s, SOL_SOCKET, SO_ACCEPTCONN, ...



details:   https://anonhg.NetBSD.org/src/rev/f7b01ae8ee47
branches:  trunk
changeset: 790428:f7b01ae8ee47
user:      seanb <seanb%NetBSD.org@localhost>
date:      Tue Oct 08 14:54:29 2013 +0000

description:
POSIX says getsockopt(s, SOL_SOCKET, SO_ACCEPTCONN,,) needs to work.

diffstat:

 sys/kern/uipc_socket.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r c98fbc0fe987 -r f7b01ae8ee47 sys/kern/uipc_socket.c
--- a/sys/kern/uipc_socket.c    Tue Oct 08 11:47:57 2013 +0000
+++ b/sys/kern/uipc_socket.c    Tue Oct 08 14:54:29 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uipc_socket.c,v 1.217 2013/08/29 17:49:21 rmind Exp $  */
+/*     $NetBSD: uipc_socket.c,v 1.218 2013/10/08 14:54:29 seanb Exp $  */
 
 /*-
  * Copyright (c) 2002, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -63,7 +63,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.217 2013/08/29 17:49:21 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.218 2013/10/08 14:54:29 seanb Exp $");
 
 #include "opt_compat_netbsd.h"
 #include "opt_sock_counters.h"
@@ -1906,6 +1906,7 @@
 #ifdef SO_OTIMESTAMP
        case SO_OTIMESTAMP:
 #endif
+       case SO_ACCEPTCONN:
                error = sockopt_setint(sopt, (so->so_options & opt) ? 1 : 0);
                break;
 



Home | Main Index | Thread Index | Old Index