Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Actually update the timeout value for the compabili...



details:   https://anonhg.NetBSD.org/src/rev/a77faa461b90
branches:  trunk
changeset: 455818:a77faa461b90
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Mon Apr 15 02:35:28 2019 +0000

description:
Actually update the timeout value for the compability sockops

diffstat:

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

diffs (30 lines):

diff -r 71967d9f2cf4 -r a77faa461b90 sys/kern/uipc_socket.c
--- a/sys/kern/uipc_socket.c    Mon Apr 15 02:07:11 2019 +0000
+++ b/sys/kern/uipc_socket.c    Mon Apr 15 02:35:28 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uipc_socket.c,v 1.275 2019/04/15 02:07:11 pgoyette Exp $       */
+/*     $NetBSD: uipc_socket.c,v 1.276 2019/04/15 02:35:28 pgoyette Exp $       */
 
 /*
  * Copyright (c) 2002, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.275 2019/04/15 02:07:11 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.276 2019/04/15 02:35:28 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -1852,9 +1852,11 @@
                        optval = 1;
 
                switch (opt) {
+               case SO_OSNDTIMEO:
                case SO_SNDTIMEO:
                        so->so_snd.sb_timeo = optval;
                        break;
+               case SO_ORCVTIMEO:
                case SO_RCVTIMEO:
                        so->so_rcv.sb_timeo = optval;
                        break;



Home | Main Index | Thread Index | Old Index