Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: mptcp.h
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
[0] Fix | Delete
#ifndef _MPTCP_H
[1] Fix | Delete
#define _MPTCP_H
[2] Fix | Delete
[3] Fix | Delete
#include <linux/const.h>
[4] Fix | Delete
#include <linux/types.h>
[5] Fix | Delete
[6] Fix | Delete
#define MPTCP_SUBFLOW_FLAG_MCAP_REM _BITUL(0)
[7] Fix | Delete
#define MPTCP_SUBFLOW_FLAG_MCAP_LOC _BITUL(1)
[8] Fix | Delete
#define MPTCP_SUBFLOW_FLAG_JOIN_REM _BITUL(2)
[9] Fix | Delete
#define MPTCP_SUBFLOW_FLAG_JOIN_LOC _BITUL(3)
[10] Fix | Delete
#define MPTCP_SUBFLOW_FLAG_BKUP_REM _BITUL(4)
[11] Fix | Delete
#define MPTCP_SUBFLOW_FLAG_BKUP_LOC _BITUL(5)
[12] Fix | Delete
#define MPTCP_SUBFLOW_FLAG_FULLY_ESTABLISHED _BITUL(6)
[13] Fix | Delete
#define MPTCP_SUBFLOW_FLAG_CONNECTED _BITUL(7)
[14] Fix | Delete
#define MPTCP_SUBFLOW_FLAG_MAPVALID _BITUL(8)
[15] Fix | Delete
[16] Fix | Delete
enum {
[17] Fix | Delete
MPTCP_SUBFLOW_ATTR_UNSPEC,
[18] Fix | Delete
MPTCP_SUBFLOW_ATTR_TOKEN_REM,
[19] Fix | Delete
MPTCP_SUBFLOW_ATTR_TOKEN_LOC,
[20] Fix | Delete
MPTCP_SUBFLOW_ATTR_RELWRITE_SEQ,
[21] Fix | Delete
MPTCP_SUBFLOW_ATTR_MAP_SEQ,
[22] Fix | Delete
MPTCP_SUBFLOW_ATTR_MAP_SFSEQ,
[23] Fix | Delete
MPTCP_SUBFLOW_ATTR_SSN_OFFSET,
[24] Fix | Delete
MPTCP_SUBFLOW_ATTR_MAP_DATALEN,
[25] Fix | Delete
MPTCP_SUBFLOW_ATTR_FLAGS,
[26] Fix | Delete
MPTCP_SUBFLOW_ATTR_ID_REM,
[27] Fix | Delete
MPTCP_SUBFLOW_ATTR_ID_LOC,
[28] Fix | Delete
MPTCP_SUBFLOW_ATTR_PAD,
[29] Fix | Delete
__MPTCP_SUBFLOW_ATTR_MAX
[30] Fix | Delete
};
[31] Fix | Delete
[32] Fix | Delete
#define MPTCP_SUBFLOW_ATTR_MAX (__MPTCP_SUBFLOW_ATTR_MAX - 1)
[33] Fix | Delete
[34] Fix | Delete
/* netlink interface */
[35] Fix | Delete
#define MPTCP_PM_NAME "mptcp_pm"
[36] Fix | Delete
#define MPTCP_PM_CMD_GRP_NAME "mptcp_pm_cmds"
[37] Fix | Delete
#define MPTCP_PM_EV_GRP_NAME "mptcp_pm_events"
[38] Fix | Delete
#define MPTCP_PM_VER 0x1
[39] Fix | Delete
[40] Fix | Delete
/*
[41] Fix | Delete
* ATTR types defined for MPTCP
[42] Fix | Delete
*/
[43] Fix | Delete
enum {
[44] Fix | Delete
MPTCP_PM_ATTR_UNSPEC,
[45] Fix | Delete
[46] Fix | Delete
MPTCP_PM_ATTR_ADDR, /* nested address */
[47] Fix | Delete
MPTCP_PM_ATTR_RCV_ADD_ADDRS, /* u32 */
[48] Fix | Delete
MPTCP_PM_ATTR_SUBFLOWS, /* u32 */
[49] Fix | Delete
[50] Fix | Delete
__MPTCP_PM_ATTR_MAX
[51] Fix | Delete
};
[52] Fix | Delete
[53] Fix | Delete
#define MPTCP_PM_ATTR_MAX (__MPTCP_PM_ATTR_MAX - 1)
[54] Fix | Delete
[55] Fix | Delete
enum {
[56] Fix | Delete
MPTCP_PM_ADDR_ATTR_UNSPEC,
[57] Fix | Delete
[58] Fix | Delete
MPTCP_PM_ADDR_ATTR_FAMILY, /* u16 */
[59] Fix | Delete
MPTCP_PM_ADDR_ATTR_ID, /* u8 */
[60] Fix | Delete
MPTCP_PM_ADDR_ATTR_ADDR4, /* struct in_addr */
[61] Fix | Delete
MPTCP_PM_ADDR_ATTR_ADDR6, /* struct in6_addr */
[62] Fix | Delete
MPTCP_PM_ADDR_ATTR_PORT, /* u16 */
[63] Fix | Delete
MPTCP_PM_ADDR_ATTR_FLAGS, /* u32 */
[64] Fix | Delete
MPTCP_PM_ADDR_ATTR_IF_IDX, /* s32 */
[65] Fix | Delete
[66] Fix | Delete
__MPTCP_PM_ADDR_ATTR_MAX
[67] Fix | Delete
};
[68] Fix | Delete
[69] Fix | Delete
#define MPTCP_PM_ADDR_ATTR_MAX (__MPTCP_PM_ADDR_ATTR_MAX - 1)
[70] Fix | Delete
[71] Fix | Delete
#define MPTCP_PM_ADDR_FLAG_SIGNAL (1 << 0)
[72] Fix | Delete
#define MPTCP_PM_ADDR_FLAG_SUBFLOW (1 << 1)
[73] Fix | Delete
#define MPTCP_PM_ADDR_FLAG_BACKUP (1 << 2)
[74] Fix | Delete
#define MPTCP_PM_ADDR_FLAG_FULLMESH (1 << 3)
[75] Fix | Delete
#define MPTCP_PM_ADDR_FLAG_IMPLICIT (1 << 4)
[76] Fix | Delete
[77] Fix | Delete
enum {
[78] Fix | Delete
MPTCP_PM_CMD_UNSPEC,
[79] Fix | Delete
[80] Fix | Delete
MPTCP_PM_CMD_ADD_ADDR,
[81] Fix | Delete
MPTCP_PM_CMD_DEL_ADDR,
[82] Fix | Delete
MPTCP_PM_CMD_GET_ADDR,
[83] Fix | Delete
MPTCP_PM_CMD_FLUSH_ADDRS,
[84] Fix | Delete
MPTCP_PM_CMD_SET_LIMITS,
[85] Fix | Delete
MPTCP_PM_CMD_GET_LIMITS,
[86] Fix | Delete
MPTCP_PM_CMD_SET_FLAGS,
[87] Fix | Delete
[88] Fix | Delete
__MPTCP_PM_CMD_AFTER_LAST
[89] Fix | Delete
};
[90] Fix | Delete
[91] Fix | Delete
#define MPTCP_INFO_FLAG_FALLBACK _BITUL(0)
[92] Fix | Delete
#define MPTCP_INFO_FLAG_REMOTE_KEY_RECEIVED _BITUL(1)
[93] Fix | Delete
[94] Fix | Delete
struct mptcp_info {
[95] Fix | Delete
__u8 mptcpi_subflows;
[96] Fix | Delete
__u8 mptcpi_add_addr_signal;
[97] Fix | Delete
__u8 mptcpi_add_addr_accepted;
[98] Fix | Delete
__u8 mptcpi_subflows_max;
[99] Fix | Delete
__u8 mptcpi_add_addr_signal_max;
[100] Fix | Delete
__u8 mptcpi_add_addr_accepted_max;
[101] Fix | Delete
__u32 mptcpi_flags;
[102] Fix | Delete
__u32 mptcpi_token;
[103] Fix | Delete
__u64 mptcpi_write_seq;
[104] Fix | Delete
__u64 mptcpi_snd_una;
[105] Fix | Delete
__u64 mptcpi_rcv_nxt;
[106] Fix | Delete
__u8 mptcpi_local_addr_used;
[107] Fix | Delete
__u8 mptcpi_local_addr_max;
[108] Fix | Delete
};
[109] Fix | Delete
[110] Fix | Delete
/*
[111] Fix | Delete
* MPTCP_EVENT_CREATED: token, family, saddr4 | saddr6, daddr4 | daddr6,
[112] Fix | Delete
* sport, dport
[113] Fix | Delete
* A new MPTCP connection has been created. It is the good time to allocate
[114] Fix | Delete
* memory and send ADD_ADDR if needed. Depending on the traffic-patterns
[115] Fix | Delete
* it can take a long time until the MPTCP_EVENT_ESTABLISHED is sent.
[116] Fix | Delete
*
[117] Fix | Delete
* MPTCP_EVENT_ESTABLISHED: token, family, saddr4 | saddr6, daddr4 | daddr6,
[118] Fix | Delete
* sport, dport
[119] Fix | Delete
* A MPTCP connection is established (can start new subflows).
[120] Fix | Delete
*
[121] Fix | Delete
* MPTCP_EVENT_CLOSED: token
[122] Fix | Delete
* A MPTCP connection has stopped.
[123] Fix | Delete
*
[124] Fix | Delete
* MPTCP_EVENT_ANNOUNCED: token, rem_id, family, daddr4 | daddr6 [, dport]
[125] Fix | Delete
* A new address has been announced by the peer.
[126] Fix | Delete
*
[127] Fix | Delete
* MPTCP_EVENT_REMOVED: token, rem_id
[128] Fix | Delete
* An address has been lost by the peer.
[129] Fix | Delete
*
[130] Fix | Delete
* MPTCP_EVENT_SUB_ESTABLISHED: token, family, saddr4 | saddr6,
[131] Fix | Delete
* daddr4 | daddr6, sport, dport, backup,
[132] Fix | Delete
* if_idx [, error]
[133] Fix | Delete
* A new subflow has been established. 'error' should not be set.
[134] Fix | Delete
*
[135] Fix | Delete
* MPTCP_EVENT_SUB_CLOSED: token, family, saddr4 | saddr6, daddr4 | daddr6,
[136] Fix | Delete
* sport, dport, backup, if_idx [, error]
[137] Fix | Delete
* A subflow has been closed. An error (copy of sk_err) could be set if an
[138] Fix | Delete
* error has been detected for this subflow.
[139] Fix | Delete
*
[140] Fix | Delete
* MPTCP_EVENT_SUB_PRIORITY: token, family, saddr4 | saddr6, daddr4 | daddr6,
[141] Fix | Delete
* sport, dport, backup, if_idx [, error]
[142] Fix | Delete
* The priority of a subflow has changed. 'error' should not be set.
[143] Fix | Delete
*/
[144] Fix | Delete
enum mptcp_event_type {
[145] Fix | Delete
MPTCP_EVENT_UNSPEC = 0,
[146] Fix | Delete
MPTCP_EVENT_CREATED = 1,
[147] Fix | Delete
MPTCP_EVENT_ESTABLISHED = 2,
[148] Fix | Delete
MPTCP_EVENT_CLOSED = 3,
[149] Fix | Delete
[150] Fix | Delete
MPTCP_EVENT_ANNOUNCED = 6,
[151] Fix | Delete
MPTCP_EVENT_REMOVED = 7,
[152] Fix | Delete
[153] Fix | Delete
MPTCP_EVENT_SUB_ESTABLISHED = 10,
[154] Fix | Delete
MPTCP_EVENT_SUB_CLOSED = 11,
[155] Fix | Delete
[156] Fix | Delete
MPTCP_EVENT_SUB_PRIORITY = 13,
[157] Fix | Delete
};
[158] Fix | Delete
[159] Fix | Delete
enum mptcp_event_attr {
[160] Fix | Delete
MPTCP_ATTR_UNSPEC = 0,
[161] Fix | Delete
[162] Fix | Delete
MPTCP_ATTR_TOKEN, /* u32 */
[163] Fix | Delete
MPTCP_ATTR_FAMILY, /* u16 */
[164] Fix | Delete
MPTCP_ATTR_LOC_ID, /* u8 */
[165] Fix | Delete
MPTCP_ATTR_REM_ID, /* u8 */
[166] Fix | Delete
MPTCP_ATTR_SADDR4, /* be32 */
[167] Fix | Delete
MPTCP_ATTR_SADDR6, /* struct in6_addr */
[168] Fix | Delete
MPTCP_ATTR_DADDR4, /* be32 */
[169] Fix | Delete
MPTCP_ATTR_DADDR6, /* struct in6_addr */
[170] Fix | Delete
MPTCP_ATTR_SPORT, /* be16 */
[171] Fix | Delete
MPTCP_ATTR_DPORT, /* be16 */
[172] Fix | Delete
MPTCP_ATTR_BACKUP, /* u8 */
[173] Fix | Delete
MPTCP_ATTR_ERROR, /* u8 */
[174] Fix | Delete
MPTCP_ATTR_FLAGS, /* u16 */
[175] Fix | Delete
MPTCP_ATTR_TIMEOUT, /* u32 */
[176] Fix | Delete
MPTCP_ATTR_IF_IDX, /* s32 */
[177] Fix | Delete
MPTCP_ATTR_RESET_REASON,/* u32 */
[178] Fix | Delete
MPTCP_ATTR_RESET_FLAGS, /* u32 */
[179] Fix | Delete
[180] Fix | Delete
__MPTCP_ATTR_AFTER_LAST
[181] Fix | Delete
};
[182] Fix | Delete
[183] Fix | Delete
#define MPTCP_ATTR_MAX (__MPTCP_ATTR_AFTER_LAST - 1)
[184] Fix | Delete
[185] Fix | Delete
/* MPTCP Reset reason codes, rfc8684 */
[186] Fix | Delete
#define MPTCP_RST_EUNSPEC 0
[187] Fix | Delete
#define MPTCP_RST_EMPTCP 1
[188] Fix | Delete
#define MPTCP_RST_ERESOURCE 2
[189] Fix | Delete
#define MPTCP_RST_EPROHIBIT 3
[190] Fix | Delete
#define MPTCP_RST_EWQ2BIG 4
[191] Fix | Delete
#define MPTCP_RST_EBADPERF 5
[192] Fix | Delete
#define MPTCP_RST_EMIDDLEBOX 6
[193] Fix | Delete
[194] Fix | Delete
#endif /* _MPTCP_H */
[195] Fix | Delete
[196] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function