Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: atmmpc.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
[0] Fix | Delete
#ifndef _ATMMPC_H_
[1] Fix | Delete
#define _ATMMPC_H_
[2] Fix | Delete
[3] Fix | Delete
#include <linux/atmapi.h>
[4] Fix | Delete
#include <linux/atmioc.h>
[5] Fix | Delete
#include <linux/atm.h>
[6] Fix | Delete
#include <linux/types.h>
[7] Fix | Delete
[8] Fix | Delete
#define ATMMPC_CTRL _IO('a', ATMIOC_MPOA)
[9] Fix | Delete
#define ATMMPC_DATA _IO('a', ATMIOC_MPOA+1)
[10] Fix | Delete
[11] Fix | Delete
#define MPC_SOCKET_INGRESS 1
[12] Fix | Delete
#define MPC_SOCKET_EGRESS 2
[13] Fix | Delete
[14] Fix | Delete
struct atmmpc_ioc {
[15] Fix | Delete
int dev_num;
[16] Fix | Delete
__be32 ipaddr; /* the IP address of the shortcut */
[17] Fix | Delete
int type; /* ingress or egress */
[18] Fix | Delete
};
[19] Fix | Delete
[20] Fix | Delete
typedef struct in_ctrl_info {
[21] Fix | Delete
__u8 Last_NHRP_CIE_code;
[22] Fix | Delete
__u8 Last_Q2931_cause_value;
[23] Fix | Delete
__u8 eg_MPC_ATM_addr[ATM_ESA_LEN];
[24] Fix | Delete
__be32 tag;
[25] Fix | Delete
__be32 in_dst_ip; /* IP address this ingress MPC sends packets to */
[26] Fix | Delete
__u16 holding_time;
[27] Fix | Delete
__u32 request_id;
[28] Fix | Delete
} in_ctrl_info;
[29] Fix | Delete
[30] Fix | Delete
typedef struct eg_ctrl_info {
[31] Fix | Delete
__u8 DLL_header[256];
[32] Fix | Delete
__u8 DH_length;
[33] Fix | Delete
__be32 cache_id;
[34] Fix | Delete
__be32 tag;
[35] Fix | Delete
__be32 mps_ip;
[36] Fix | Delete
__be32 eg_dst_ip; /* IP address to which ingress MPC sends packets */
[37] Fix | Delete
__u8 in_MPC_data_ATM_addr[ATM_ESA_LEN];
[38] Fix | Delete
__u16 holding_time;
[39] Fix | Delete
} eg_ctrl_info;
[40] Fix | Delete
[41] Fix | Delete
struct mpc_parameters {
[42] Fix | Delete
__u16 mpc_p1; /* Shortcut-Setup Frame Count */
[43] Fix | Delete
__u16 mpc_p2; /* Shortcut-Setup Frame Time */
[44] Fix | Delete
__u8 mpc_p3[8]; /* Flow-detection Protocols */
[45] Fix | Delete
__u16 mpc_p4; /* MPC Initial Retry Time */
[46] Fix | Delete
__u16 mpc_p5; /* MPC Retry Time Maximum */
[47] Fix | Delete
__u16 mpc_p6; /* Hold Down Time */
[48] Fix | Delete
} ;
[49] Fix | Delete
[50] Fix | Delete
struct k_message {
[51] Fix | Delete
__u16 type;
[52] Fix | Delete
__be32 ip_mask;
[53] Fix | Delete
__u8 MPS_ctrl[ATM_ESA_LEN];
[54] Fix | Delete
union {
[55] Fix | Delete
in_ctrl_info in_info;
[56] Fix | Delete
eg_ctrl_info eg_info;
[57] Fix | Delete
struct mpc_parameters params;
[58] Fix | Delete
} content;
[59] Fix | Delete
struct atm_qos qos;
[60] Fix | Delete
} __ATM_API_ALIGN;
[61] Fix | Delete
[62] Fix | Delete
struct llc_snap_hdr {
[63] Fix | Delete
/* RFC 1483 LLC/SNAP encapsulation for routed IP PDUs */
[64] Fix | Delete
__u8 dsap; /* Destination Service Access Point (0xAA) */
[65] Fix | Delete
__u8 ssap; /* Source Service Access Point (0xAA) */
[66] Fix | Delete
__u8 ui; /* Unnumbered Information (0x03) */
[67] Fix | Delete
__u8 org[3]; /* Organizational identification (0x000000) */
[68] Fix | Delete
__u8 type[2]; /* Ether type (for IP) (0x0800) */
[69] Fix | Delete
};
[70] Fix | Delete
[71] Fix | Delete
/* TLVs this MPC recognizes */
[72] Fix | Delete
#define TLV_MPOA_DEVICE_TYPE 0x00a03e2a
[73] Fix | Delete
[74] Fix | Delete
/* MPOA device types in MPOA Device Type TLV */
[75] Fix | Delete
#define NON_MPOA 0
[76] Fix | Delete
#define MPS 1
[77] Fix | Delete
#define MPC 2
[78] Fix | Delete
#define MPS_AND_MPC 3
[79] Fix | Delete
[80] Fix | Delete
[81] Fix | Delete
/* MPC parameter defaults */
[82] Fix | Delete
[83] Fix | Delete
#define MPC_P1 10 /* Shortcut-Setup Frame Count */
[84] Fix | Delete
#define MPC_P2 1 /* Shortcut-Setup Frame Time */
[85] Fix | Delete
#define MPC_P3 0 /* Flow-detection Protocols */
[86] Fix | Delete
#define MPC_P4 5 /* MPC Initial Retry Time */
[87] Fix | Delete
#define MPC_P5 40 /* MPC Retry Time Maximum */
[88] Fix | Delete
#define MPC_P6 160 /* Hold Down Time */
[89] Fix | Delete
#define HOLDING_TIME_DEFAULT 1200 /* same as MPS-p7 */
[90] Fix | Delete
[91] Fix | Delete
/* MPC constants */
[92] Fix | Delete
[93] Fix | Delete
#define MPC_C1 2 /* Retry Time Multiplier */
[94] Fix | Delete
#define MPC_C2 60 /* Initial Keep-Alive Lifetime */
[95] Fix | Delete
[96] Fix | Delete
/* Message types - to MPOA daemon */
[97] Fix | Delete
[98] Fix | Delete
#define SND_MPOA_RES_RQST 201
[99] Fix | Delete
#define SET_MPS_CTRL_ADDR 202
[100] Fix | Delete
#define SND_MPOA_RES_RTRY 203 /* Different type in a retry due to req id */
[101] Fix | Delete
#define STOP_KEEP_ALIVE_SM 204
[102] Fix | Delete
#define EGRESS_ENTRY_REMOVED 205
[103] Fix | Delete
#define SND_EGRESS_PURGE 206
[104] Fix | Delete
#define DIE 207 /* tell the daemon to exit() */
[105] Fix | Delete
#define DATA_PLANE_PURGE 208 /* Data plane purge because of egress cache hit miss or dead MPS */
[106] Fix | Delete
#define OPEN_INGRESS_SVC 209
[107] Fix | Delete
[108] Fix | Delete
/* Message types - from MPOA daemon */
[109] Fix | Delete
[110] Fix | Delete
#define MPOA_TRIGGER_RCVD 101
[111] Fix | Delete
#define MPOA_RES_REPLY_RCVD 102
[112] Fix | Delete
#define INGRESS_PURGE_RCVD 103
[113] Fix | Delete
#define EGRESS_PURGE_RCVD 104
[114] Fix | Delete
#define MPS_DEATH 105
[115] Fix | Delete
#define CACHE_IMPOS_RCVD 106
[116] Fix | Delete
#define SET_MPC_CTRL_ADDR 107 /* Our MPC's control ATM address */
[117] Fix | Delete
#define SET_MPS_MAC_ADDR 108
[118] Fix | Delete
#define CLEAN_UP_AND_EXIT 109
[119] Fix | Delete
#define SET_MPC_PARAMS 110 /* MPC configuration parameters */
[120] Fix | Delete
[121] Fix | Delete
/* Message types - bidirectional */
[122] Fix | Delete
[123] Fix | Delete
#define RELOAD 301 /* kill -HUP the daemon for reload */
[124] Fix | Delete
[125] Fix | Delete
#endif /* _ATMMPC_H_ */
[126] Fix | Delete
[127] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function