Author: trasz Date: Thu Jun 11 12:25:49 2020 New Revision: 362051 URL: https://svnweb.freebsd.org/changeset/base/362051
Log: Make linux(4) handle SO_REUSEPORT. Reviewed by: emaste MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D25216 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 Thu Jun 11 11:45:30 2020 (r362050) +++ head/sys/compat/linux/linux_socket.c Thu Jun 11 12:25:49 2020 (r362051) @@ -223,6 +223,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: head/sys/compat/linux/linux_socket.h ============================================================================== --- head/sys/compat/linux/linux_socket.h Thu Jun 11 11:45:30 2020 (r362050) +++ head/sys/compat/linux/linux_socket.h Thu Jun 11 12:25:49 2020 (r362051) @@ -190,6 +190,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 _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "[email protected]"
