svn commit: r362735 - head/sys/compat/linux

Edward Tomasz Napierala trasz at FreeBSD.org
Sun Jun 28 18:56:33 UTC 2020


Author: trasz
Date: Sun Jun 28 18:56:32 2020
New Revision: 362735
URL: https://svnweb.freebsd.org/changeset/base/362735

Log:
  Make linux(4) support SO_PROTOCOL.  Running Python test suite
  with python3.8 from Focal triggers those.
  
  MFC after:	2 weeks
  Sponsored by:	The FreeBSD Foundation
  Differential Revision:	https://reviews.freebsd.org/D25491

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	Sun Jun 28 18:02:51 2020	(r362734)
+++ head/sys/compat/linux/linux_socket.c	Sun Jun 28 18:56:32 2020	(r362735)
@@ -236,6 +236,8 @@ linux_to_bsd_so_sockopt(int opt)
 		return (SO_TIMESTAMP);
 	case LINUX_SO_ACCEPTCONN:
 		return (SO_ACCEPTCONN);
+	case LINUX_SO_PROTOCOL:
+		return (SO_PROTOCOL);
 	}
 	return (-1);
 }

Modified: head/sys/compat/linux/linux_socket.h
==============================================================================
--- head/sys/compat/linux/linux_socket.h	Sun Jun 28 18:02:51 2020	(r362734)
+++ head/sys/compat/linux/linux_socket.h	Sun Jun 28 18:56:32 2020	(r362735)
@@ -197,6 +197,7 @@ int linux_accept(struct thread *td, struct linux_accep
 #define	LINUX_SO_ACCEPTCONN	30
 #define	LINUX_SO_SNDBUFFORCE	32
 #define	LINUX_SO_RCVBUFFORCE	33
+#define	LINUX_SO_PROTOCOL	38
 
 /* Socket options */
 #define	LINUX_IP_TOS		1


More information about the svn-src-all mailing list