Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jun 2020 18:43:43 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r362014 - head/sys/compat/linux
Message-ID:  <202006101843.05AIhhAl080911@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Wed Jun 10 18:43:43 2020
New Revision: 362014
URL: https://svnweb.freebsd.org/changeset/base/362014

Log:
  Support SO_SNDBUFFORCE/SO_RCVBUFFORCE by aliasing them to the
  standard SO_SNDBUF/SO_RCVBUF.  Mostly cosmetics, to get rid
  of the warning during 'apt upgrade'.
  
  MFC after:	2 weeks
  Sponsored by:	The FreeBSD Foundation
  Differential Revision:	https://reviews.freebsd.org/D25173

Modified:
  head/sys/compat/linux/linux_socket.c
  head/sys/compat/linux/linux_socket.h

Modified: head/sys/compat/linux/linux_socket.c
==============================================================================
--- head/sys/compat/linux/linux_socket.c	Wed Jun 10 16:00:43 2020	(r362013)
+++ head/sys/compat/linux/linux_socket.c	Wed Jun 10 18:43:43 2020	(r362014)
@@ -212,8 +212,10 @@ linux_to_bsd_so_sockopt(int opt)
 	case LINUX_SO_BROADCAST:
 		return (SO_BROADCAST);
 	case LINUX_SO_SNDBUF:
+	case LINUX_SO_SNDBUFFORCE:
 		return (SO_SNDBUF);
 	case LINUX_SO_RCVBUF:
+	case LINUX_SO_RCVBUFFORCE:
 		return (SO_RCVBUF);
 	case LINUX_SO_KEEPALIVE:
 		return (SO_KEEPALIVE);

Modified: head/sys/compat/linux/linux_socket.h
==============================================================================
--- head/sys/compat/linux/linux_socket.h	Wed Jun 10 16:00:43 2020	(r362013)
+++ head/sys/compat/linux/linux_socket.h	Wed Jun 10 18:43:43 2020	(r362014)
@@ -200,6 +200,8 @@ int linux_accept(struct thread *td, struct linux_accep
 #endif
 #define	LINUX_SO_TIMESTAMP	29
 #define	LINUX_SO_ACCEPTCONN	30
+#define	LINUX_SO_SNDBUFFORCE	32
+#define	LINUX_SO_RCVBUFFORCE	33
 
 /* Socket options */
 #define	LINUX_IP_TOS		1



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202006101843.05AIhhAl080911>