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
This commit is contained in:
parent
823b096471
commit
fe3e8b90dc
|
@ -171,6 +171,7 @@ typedef __uintptr_t uintptr_t;
|
||||||
#define SO_PROTOTYPE SO_PROTOCOL /* alias for SO_PROTOCOL (SunOS name) */
|
#define SO_PROTOTYPE SO_PROTOCOL /* alias for SO_PROTOCOL (SunOS name) */
|
||||||
#define SO_TS_CLOCK 0x1017 /* clock type used for SO_TIMESTAMP */
|
#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_MAX_PACING_RATE 0x1018 /* socket's max TX pacing rate (Linux name) */
|
||||||
|
#define SO_DOMAIN 0x1019 /* get socket domain */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if __BSD_VISIBLE
|
#if __BSD_VISIBLE
|
||||||
|
|
Loading…
Reference in New Issue