1 /* 2 * This header was generated from the Linux kernel headers by update_headers.py, 3 * to provide necessary information from kernel to userspace, such as constants, 4 * structures, and macros, and thus, contains no copyrightable information. 5 */ 6 #ifndef _UAPI_VSOCKMON_H 7 #define _UAPI_VSOCKMON_H 8 #include <linux/virtio_vsock.h> 9 struct af_vsockmon_hdr { 10 __le64 src_cid; 11 __le64 dst_cid; 12 __le32 src_port; 13 __le32 dst_port; 14 __le16 op; 15 __le16 transport; 16 __le16 len; 17 __u8 reserved[2]; 18 }; 19 enum af_vsockmon_op { 20 AF_VSOCK_OP_UNKNOWN = 0, 21 AF_VSOCK_OP_CONNECT = 1, 22 AF_VSOCK_OP_DISCONNECT = 2, 23 AF_VSOCK_OP_CONTROL = 3, 24 AF_VSOCK_OP_PAYLOAD = 4, 25 }; 26 enum af_vsockmon_transport { 27 AF_VSOCK_TRANSPORT_UNKNOWN = 0, 28 AF_VSOCK_TRANSPORT_NO_INFO = 1, 29 30 AF_VSOCK_TRANSPORT_VIRTIO = 2, 31 }; 32 #endif 33