Module Name:    src
Committed By:   pgoyette
Date:           Mon Apr 15 02:35:28 UTC 2019

Modified Files:
        src/sys/kern: uipc_socket.c

Log Message:
Actually update the timeout value for the compability sockops


To generate a diff of this commit:
cvs rdiff -u -r1.275 -r1.276 src/sys/kern/uipc_socket.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/uipc_socket.c
diff -u src/sys/kern/uipc_socket.c:1.275 src/sys/kern/uipc_socket.c:1.276
--- src/sys/kern/uipc_socket.c:1.275	Mon Apr 15 02:07:11 2019
+++ src/sys/kern/uipc_socket.c	Mon Apr 15 02:35:28 2019
@@ -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 @@ sosetopt1(struct socket *so, const struc
 			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;

Reply via email to