1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef _UAPI_VSOCKMON_H
20 #define _UAPI_VSOCKMON_H
21 #include <linux/virtio_vsock.h>
22 struct af_vsockmon_hdr {
23   __le64 src_cid;
24   __le64 dst_cid;
25   __le32 src_port;
26   __le32 dst_port;
27   __le16 op;
28   __le16 transport;
29   __le16 len;
30   __u8 reserved[2];
31 };
32 enum af_vsockmon_op {
33   AF_VSOCK_OP_UNKNOWN = 0,
34   AF_VSOCK_OP_CONNECT = 1,
35   AF_VSOCK_OP_DISCONNECT = 2,
36   AF_VSOCK_OP_CONTROL = 3,
37   AF_VSOCK_OP_PAYLOAD = 4,
38 };
39 enum af_vsockmon_transport {
40   AF_VSOCK_TRANSPORT_UNKNOWN = 0,
41   AF_VSOCK_TRANSPORT_NO_INFO = 1,
42   AF_VSOCK_TRANSPORT_VIRTIO = 2,
43 };
44 #endif
45