aboutsummaryrefslogtreecommitdiff
path: root/linux-headers/include/linux/vm_sockets.h
diff options
context:
space:
mode:
Diffstat (limited to 'linux-headers/include/linux/vm_sockets.h')
-rw-r--r--linux-headers/include/linux/vm_sockets.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/linux-headers/include/linux/vm_sockets.h b/linux-headers/include/linux/vm_sockets.h
index 3692d43..e401160 100644
--- a/linux-headers/include/linux/vm_sockets.h
+++ b/linux-headers/include/linux/vm_sockets.h
@@ -17,6 +17,8 @@
#ifndef _VM_SOCKETS_H
#define _VM_SOCKETS_H
+#include <sys/socket.h> /* for struct sockaddr and sa_family_t */
+
#include <linux/socket.h>
#include <linux/types.h>
@@ -189,4 +191,21 @@ struct sockaddr_vm {
#define IOCTL_VM_SOCKETS_GET_LOCAL_CID _IO(7, 0xb9)
+/* MSG_ZEROCOPY notifications are encoded in the standard error format,
+ * sock_extended_err. See Documentation/networking/msg_zerocopy.rst in
+ * kernel source tree for more details.
+ */
+
+/* 'cmsg_level' field value of 'struct cmsghdr' for notification parsing
+ * when MSG_ZEROCOPY flag is used on transmissions.
+ */
+
+#define SOL_VSOCK 287
+
+/* 'cmsg_type' field value of 'struct cmsghdr' for notification parsing
+ * when MSG_ZEROCOPY flag is used on transmissions.
+ */
+
+#define VSOCK_RECVERR 1
+
#endif /* _VM_SOCKETS_H */