Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Aug 2020 12:30:43 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r364661 - stable/12/sys/compat/linux
Message-ID:  <202008241230.07OCUhlF023889@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Mon Aug 24 12:30:43 2020
New Revision: 364661
URL: https://svnweb.freebsd.org/changeset/base/364661

Log:
  MFC r362051:
  
  Make linux(4) handle SO_REUSEPORT.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  stable/12/sys/compat/linux/linux_socket.c
  stable/12/sys/compat/linux/linux_socket.h
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/compat/linux/linux_socket.c
==============================================================================
--- stable/12/sys/compat/linux/linux_socket.c	Mon Aug 24 12:29:23 2020	(r364660)
+++ stable/12/sys/compat/linux/linux_socket.c	Mon Aug 24 12:30:43 2020	(r364661)
@@ -374,6 +374,8 @@ linux_to_bsd_so_sockopt(int opt)
 		return (SO_OOBINLINE);
 	case LINUX_SO_LINGER:
 		return (SO_LINGER);
+	case LINUX_SO_REUSEPORT:
+		return (SO_REUSEPORT_LB);
 	case LINUX_SO_PEERCRED:
 		return (LOCAL_PEERCRED);
 	case LINUX_SO_RCVLOWAT:

Modified: stable/12/sys/compat/linux/linux_socket.h
==============================================================================
--- stable/12/sys/compat/linux/linux_socket.h	Mon Aug 24 12:29:23 2020	(r364660)
+++ stable/12/sys/compat/linux/linux_socket.h	Mon Aug 24 12:30:43 2020	(r364661)
@@ -196,6 +196,7 @@ int linux_accept(struct thread *td, struct linux_accep
 #define	LINUX_SO_NO_CHECK	11
 #define	LINUX_SO_PRIORITY	12
 #define	LINUX_SO_LINGER		13
+#define	LINUX_SO_REUSEPORT	15
 #ifndef LINUX_SO_PASSCRED	/* powerpc differs */
 #define	LINUX_SO_PASSCRED	16
 #define	LINUX_SO_PEERCRED	17



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