blob: 8e2e9027a5fa1aecf16a1c4657b27c455e96296b [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Christopher Ferris525ce912017-07-26 13:12:53 -07007#ifndef _UAPI_VSOCKMON_H
8#define _UAPI_VSOCKMON_H
9#include <linux/virtio_vsock.h>
10struct af_vsockmon_hdr {
11 __le64 src_cid;
12 __le64 dst_cid;
13 __le32 src_port;
14 __le32 dst_port;
15 __le16 op;
16 __le16 transport;
17 __le16 len;
18 __u8 reserved[2];
Christopher Ferris82d75042015-01-26 10:57:07 -080019};
Christopher Ferris525ce912017-07-26 13:12:53 -070020enum af_vsockmon_op {
21 AF_VSOCK_OP_UNKNOWN = 0,
22 AF_VSOCK_OP_CONNECT = 1,
23 AF_VSOCK_OP_DISCONNECT = 2,
24 AF_VSOCK_OP_CONTROL = 3,
25 AF_VSOCK_OP_PAYLOAD = 4,
26};
27enum af_vsockmon_transport {
28 AF_VSOCK_TRANSPORT_UNKNOWN = 0,
29 AF_VSOCK_TRANSPORT_NO_INFO = 1,
30 AF_VSOCK_TRANSPORT_VIRTIO = 2,
31};
Christopher Ferris82d75042015-01-26 10:57:07 -080032#endif