svn commit: r364658 - stable/12/sys/compat/linux
Edward Tomasz Napierala
trasz at FreeBSD.org
Mon Aug 24 12:23:56 UTC 2020
Author: trasz
Date: Mon Aug 24 12:23:55 2020
New Revision: 364658
URL: https://svnweb.freebsd.org/changeset/base/364658
Log:
MFC r362014:
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'.
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:20:55 2020 (r364657)
+++ stable/12/sys/compat/linux/linux_socket.c Mon Aug 24 12:23:55 2020 (r364658)
@@ -363,8 +363,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: stable/12/sys/compat/linux/linux_socket.h
==============================================================================
--- stable/12/sys/compat/linux/linux_socket.h Mon Aug 24 12:20:55 2020 (r364657)
+++ stable/12/sys/compat/linux/linux_socket.h Mon Aug 24 12:23:55 2020 (r364658)
@@ -206,6 +206,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
More information about the svn-src-all
mailing list