summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2018-08-21 14:04:30 +0000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-08-24 15:00:04 +0200
commitfe3e8b90dc47bda41f697cffe1f5b6c0c32be70a (patch)
tree93a1b575d613fc8306e694a54999cf2607b349f4
parent823b09647103311555076967369cbc4db70c007a (diff)
downloadcygnal-fe3e8b90dc47bda41f697cffe1f5b6c0c32be70a.tar.gz
cygnal-fe3e8b90dc47bda41f697cffe1f5b6c0c32be70a.tar.bz2
cygnal-fe3e8b90dc47bda41f697cffe1f5b6c0c32be70a.zip
Add SOL_SOCKET level socket option
with name SO_DOMAIN to get the domain of a socket. This is helpful when testing and Solaris and Linux have the same socket option using the same name. Reviewed by: bcr@, rrs@ Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D16791
-rw-r--r--newlib/libc/sys/rtems/include/sys/socket.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/newlib/libc/sys/rtems/include/sys/socket.h b/newlib/libc/sys/rtems/include/sys/socket.h
index a1ffbbdcb..f329e3a2d 100644
--- a/newlib/libc/sys/rtems/include/sys/socket.h
+++ b/newlib/libc/sys/rtems/include/sys/socket.h
@@ -171,6 +171,7 @@ typedef __uintptr_t uintptr_t;
#define SO_PROTOTYPE SO_PROTOCOL /* alias for SO_PROTOCOL (SunOS name) */
#define SO_TS_CLOCK 0x1017 /* clock type used for SO_TIMESTAMP */
#define SO_MAX_PACING_RATE 0x1018 /* socket's max TX pacing rate (Linux name) */
+#define SO_DOMAIN 0x1019 /* get socket domain */
#endif
#if __BSD_VISIBLE