1 /* 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 */ 7 #ifndef _ATMMPC_H_ 8 #define _ATMMPC_H_ 9 #include <linux/atmapi.h> 10 #include <linux/atmioc.h> 11 #include <linux/atm.h> 12 #include <linux/types.h> 13 #define ATMMPC_CTRL _IO('a', ATMIOC_MPOA) 14 #define ATMMPC_DATA _IO('a', ATMIOC_MPOA + 1) 15 #define MPC_SOCKET_INGRESS 1 16 #define MPC_SOCKET_EGRESS 2 17 struct atmmpc_ioc { 18 int dev_num; 19 __be32 ipaddr; 20 int type; 21 }; 22 typedef struct in_ctrl_info { 23 __u8 Last_NHRP_CIE_code; 24 __u8 Last_Q2931_cause_value; 25 __u8 eg_MPC_ATM_addr[ATM_ESA_LEN]; 26 __be32 tag; 27 __be32 in_dst_ip; 28 __u16 holding_time; 29 __u32 request_id; 30 } in_ctrl_info; 31 typedef struct eg_ctrl_info { 32 __u8 DLL_header[256]; 33 __u8 DH_length; 34 __be32 cache_id; 35 __be32 tag; 36 __be32 mps_ip; 37 __be32 eg_dst_ip; 38 __u8 in_MPC_data_ATM_addr[ATM_ESA_LEN]; 39 __u16 holding_time; 40 } eg_ctrl_info; 41 struct mpc_parameters { 42 __u16 mpc_p1; 43 __u16 mpc_p2; 44 __u8 mpc_p3[8]; 45 __u16 mpc_p4; 46 __u16 mpc_p5; 47 __u16 mpc_p6; 48 }; 49 struct k_message { 50 __u16 type; 51 __be32 ip_mask; 52 __u8 MPS_ctrl[ATM_ESA_LEN]; 53 union { 54 in_ctrl_info in_info; 55 eg_ctrl_info eg_info; 56 struct mpc_parameters params; 57 } content; 58 struct atm_qos qos; 59 } __ATM_API_ALIGN; 60 struct llc_snap_hdr { 61 __u8 dsap; 62 __u8 ssap; 63 __u8 ui; 64 __u8 org[3]; 65 __u8 type[2]; 66 }; 67 #define TLV_MPOA_DEVICE_TYPE 0x00a03e2a 68 #define NON_MPOA 0 69 #define MPS 1 70 #define MPC 2 71 #define MPS_AND_MPC 3 72 #define MPC_P1 10 73 #define MPC_P2 1 74 #define MPC_P3 0 75 #define MPC_P4 5 76 #define MPC_P5 40 77 #define MPC_P6 160 78 #define HOLDING_TIME_DEFAULT 1200 79 #define MPC_C1 2 80 #define MPC_C2 60 81 #define SND_MPOA_RES_RQST 201 82 #define SET_MPS_CTRL_ADDR 202 83 #define SND_MPOA_RES_RTRY 203 84 #define STOP_KEEP_ALIVE_SM 204 85 #define EGRESS_ENTRY_REMOVED 205 86 #define SND_EGRESS_PURGE 206 87 #define DIE 207 88 #define DATA_PLANE_PURGE 208 89 #define OPEN_INGRESS_SVC 209 90 #define MPOA_TRIGGER_RCVD 101 91 #define MPOA_RES_REPLY_RCVD 102 92 #define INGRESS_PURGE_RCVD 103 93 #define EGRESS_PURGE_RCVD 104 94 #define MPS_DEATH 105 95 #define CACHE_IMPOS_RCVD 106 96 #define SET_MPC_CTRL_ADDR 107 97 #define SET_MPS_MAC_ADDR 108 98 #define CLEAN_UP_AND_EXIT 109 99 #define SET_MPC_PARAMS 110 100 #define RELOAD 301 101 #endif 102