summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_socket.h
diff options
context:
space:
mode:
authorfgsch <fgsch@openbsd.org>2011-12-03 12:38:30 +0000
committerfgsch <fgsch@openbsd.org>2011-12-03 12:38:30 +0000
commitd979ccea806667f2fcd89f5f68eef98c6522af8e (patch)
tree53fcff1536ea70e1c36bfef14fb1a293a680b985 /sys/compat/linux/linux_socket.h
parentMake sure splx() is called before exiting wi_usb_tx_lock_try(). (diff)
downloadwireguard-openbsd-d979ccea806667f2fcd89f5f68eef98c6522af8e.tar.xz
wireguard-openbsd-d979ccea806667f2fcd89f5f68eef98c6522af8e.zip
add support for MSG_NOSIGNAL.
linux bits compiled on i386 by sebastia@, mikeb@ ok
Diffstat (limited to 'sys/compat/linux/linux_socket.h')
-rw-r--r--sys/compat/linux/linux_socket.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_socket.h b/sys/compat/linux/linux_socket.h
index 3f304c72d2c..1d22cec0299 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.8 2011/04/05 22:54:31 pirofti Exp $ */
+/* $OpenBSD: linux_socket.h,v 1.9 2011/12/03 12:38:30 fgsch Exp $ */
/* $NetBSD: linux_socket.h,v 1.3 1995/05/28 10:16:34 mycroft Exp $ */
/*
@@ -102,12 +102,24 @@
#define LINUX_IP_DROP_MEMBERSHIP 36
/*
- * Options vor [gs]etsockopt(2), TCP level.
+ * Options for [gs]etsockopt(2), TCP level.
*/
#define LINUX_TCP_NODELAY 1
#define LINUX_TCP_MAXSEG 2
+/*
+ * Flags for recv(2) and send(2) family functions.
+ * The first 3 match MSG_XXX.
+ */
+
+#define LINUX_MSG_OOB 1
+#define LINUX_MSG_PEEK 2
+#define LINUX_MSG_DONTROUTE 4
+#define LINUX_MSG_DONTWAIT 0x40
+#define LINUX_MSG_WAITALL 0x100
+#define LINUX_MSG_NOSIGNAL 0x4000
+
struct linux_sockaddr {
unsigned short sa_family;
char sa_data[14];