Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: vsockmon.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
[0] Fix | Delete
#ifndef _VSOCKMON_H
[1] Fix | Delete
#define _VSOCKMON_H
[2] Fix | Delete
[3] Fix | Delete
#include <linux/virtio_vsock.h>
[4] Fix | Delete
[5] Fix | Delete
/*
[6] Fix | Delete
* vsockmon is the AF_VSOCK packet capture device. Packets captured have the
[7] Fix | Delete
* following layout:
[8] Fix | Delete
*
[9] Fix | Delete
* +-----------------------------------+
[10] Fix | Delete
* | vsockmon header |
[11] Fix | Delete
* | (struct af_vsockmon_hdr) |
[12] Fix | Delete
* +-----------------------------------+
[13] Fix | Delete
* | transport header |
[14] Fix | Delete
* | (af_vsockmon_hdr->len bytes long) |
[15] Fix | Delete
* +-----------------------------------+
[16] Fix | Delete
* | payload |
[17] Fix | Delete
* | (until end of packet) |
[18] Fix | Delete
* +-----------------------------------+
[19] Fix | Delete
*
[20] Fix | Delete
* The vsockmon header is a transport-independent description of the packet.
[21] Fix | Delete
* It duplicates some of the information from the transport header so that
[22] Fix | Delete
* no transport-specific knowledge is necessary to process packets.
[23] Fix | Delete
*
[24] Fix | Delete
* The transport header is useful for low-level transport-specific packet
[25] Fix | Delete
* analysis. Transport type is given in af_vsockmon_hdr->transport and
[26] Fix | Delete
* transport header length is given in af_vsockmon_hdr->len.
[27] Fix | Delete
*
[28] Fix | Delete
* If af_vsockmon_hdr->op is AF_VSOCK_OP_PAYLOAD then the payload follows the
[29] Fix | Delete
* transport header. Other ops do not have a payload.
[30] Fix | Delete
*/
[31] Fix | Delete
[32] Fix | Delete
struct af_vsockmon_hdr {
[33] Fix | Delete
__le64 src_cid;
[34] Fix | Delete
__le64 dst_cid;
[35] Fix | Delete
__le32 src_port;
[36] Fix | Delete
__le32 dst_port;
[37] Fix | Delete
__le16 op; /* enum af_vsockmon_op */
[38] Fix | Delete
__le16 transport; /* enum af_vsockmon_transport */
[39] Fix | Delete
__le16 len; /* Transport header length */
[40] Fix | Delete
__u8 reserved[2];
[41] Fix | Delete
};
[42] Fix | Delete
[43] Fix | Delete
enum af_vsockmon_op {
[44] Fix | Delete
AF_VSOCK_OP_UNKNOWN = 0,
[45] Fix | Delete
AF_VSOCK_OP_CONNECT = 1,
[46] Fix | Delete
AF_VSOCK_OP_DISCONNECT = 2,
[47] Fix | Delete
AF_VSOCK_OP_CONTROL = 3,
[48] Fix | Delete
AF_VSOCK_OP_PAYLOAD = 4,
[49] Fix | Delete
};
[50] Fix | Delete
[51] Fix | Delete
enum af_vsockmon_transport {
[52] Fix | Delete
AF_VSOCK_TRANSPORT_UNKNOWN = 0,
[53] Fix | Delete
AF_VSOCK_TRANSPORT_NO_INFO = 1, /* No transport information */
[54] Fix | Delete
[55] Fix | Delete
/* Transport header type: struct virtio_vsock_hdr */
[56] Fix | Delete
AF_VSOCK_TRANSPORT_VIRTIO = 2,
[57] Fix | Delete
};
[58] Fix | Delete
[59] Fix | Delete
#endif
[60] Fix | Delete
[61] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function