diff options
| author | 2012-06-19 11:28:20 +0000 | |
|---|---|---|
| committer | 2012-06-19 11:28:20 +0000 | |
| commit | c8877d312ba59d36d0670e165639fe65e015824b (patch) | |
| tree | 13a59825ece7702f8263daa941aeee75f79e91ce /sys/compat/linux/linux_socket.h | |
| parent | sync the descriptions of /etc/passwd; (diff) | |
| download | wireguard-openbsd-c8877d312ba59d36d0670e165639fe65e015824b.tar.xz wireguard-openbsd-c8877d312ba59d36d0670e165639fe65e015824b.zip | |
Add socket type mask to filter out implementation specific flags.
The newer glibc's, when creating a socket, add some higher bit flags to
the type argument that are used for debug, statistics, profiling
whatever. They are not useful and implementation specific.
This is needed for DNS resolving, otherwise the nss library from glibc
will always fail to do the right thing.
Okay jasper@
Diffstat (limited to 'sys/compat/linux/linux_socket.h')
| -rw-r--r-- | sys/compat/linux/linux_socket.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_socket.h b/sys/compat/linux/linux_socket.h index 1d22cec0299..98ff2d950ec 100644 --- a/sys/compat/linux/linux_socket.h +++ b/sys/compat/linux/linux_socket.h @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_socket.h,v 1.9 2011/12/03 12:38:30 fgsch Exp $ */ +/* $OpenBSD: linux_socket.h,v 1.10 2012/06/19 11:28:20 pirofti Exp $ */ /* $NetBSD: linux_socket.h,v 1.3 1995/05/28 10:16:34 mycroft Exp $ */ /* @@ -120,6 +120,9 @@ #define LINUX_MSG_WAITALL 0x100 #define LINUX_MSG_NOSIGNAL 0x4000 +/* Mask out extra type-related options */ +#define LINUX_SOCKET_TYPE_MASK 0xf + struct linux_sockaddr { unsigned short sa_family; char sa_data[14]; |
