1 /**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19 #ifndef _UAPI_INET_DIAG_H_ 20 #define _UAPI_INET_DIAG_H_ 21 #include <linux/types.h> 22 #define TCPDIAG_GETSOCK 18 23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 #define DCCPDIAG_GETSOCK 19 25 #define INET_DIAG_GETSOCK_MAX 24 26 struct inet_diag_sockid { 27 __be16 idiag_sport; 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 __be16 idiag_dport; 30 __be32 idiag_src[4]; 31 __be32 idiag_dst[4]; 32 __u32 idiag_if; 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 __u32 idiag_cookie[2]; 35 #define INET_DIAG_NOCOOKIE (~0U) 36 }; 37 struct inet_diag_req { 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 __u8 idiag_family; 40 __u8 idiag_src_len; 41 __u8 idiag_dst_len; 42 __u8 idiag_ext; 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 struct inet_diag_sockid id; 45 __u32 idiag_states; 46 __u32 idiag_dbs; 47 }; 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 struct inet_diag_req_v2 { 50 __u8 sdiag_family; 51 __u8 sdiag_protocol; 52 __u8 idiag_ext; 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 __u8 pad; 55 __u32 idiag_states; 56 struct inet_diag_sockid id; 57 }; 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 struct inet_diag_req_raw { 60 __u8 sdiag_family; 61 __u8 sdiag_protocol; 62 __u8 idiag_ext; 63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 __u8 sdiag_raw_protocol; 65 __u32 idiag_states; 66 struct inet_diag_sockid id; 67 }; 68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 enum { 70 INET_DIAG_REQ_NONE, 71 INET_DIAG_REQ_BYTECODE, 72 }; 73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74 #define INET_DIAG_REQ_MAX INET_DIAG_REQ_BYTECODE 75 struct inet_diag_bc_op { 76 unsigned char code; 77 unsigned char yes; 78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79 unsigned short no; 80 }; 81 enum { 82 INET_DIAG_BC_NOP, 83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84 INET_DIAG_BC_JMP, 85 INET_DIAG_BC_S_GE, 86 INET_DIAG_BC_S_LE, 87 INET_DIAG_BC_D_GE, 88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89 INET_DIAG_BC_D_LE, 90 INET_DIAG_BC_AUTO, 91 INET_DIAG_BC_S_COND, 92 INET_DIAG_BC_D_COND, 93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94 INET_DIAG_BC_DEV_COND, 95 INET_DIAG_BC_MARK_COND, 96 }; 97 struct inet_diag_hostcond { 98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 99 __u8 family; 100 __u8 prefix_len; 101 int port; 102 __be32 addr[0]; 103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 104 }; 105 struct inet_diag_markcond { 106 __u32 mark; 107 __u32 mask; 108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 109 }; 110 struct inet_diag_msg { 111 __u8 idiag_family; 112 __u8 idiag_state; 113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 114 __u8 idiag_timer; 115 __u8 idiag_retrans; 116 struct inet_diag_sockid id; 117 __u32 idiag_expires; 118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 119 __u32 idiag_rqueue; 120 __u32 idiag_wqueue; 121 __u32 idiag_uid; 122 __u32 idiag_inode; 123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 124 }; 125 enum { 126 INET_DIAG_NONE, 127 INET_DIAG_MEMINFO, 128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 129 INET_DIAG_INFO, 130 INET_DIAG_VEGASINFO, 131 INET_DIAG_CONG, 132 INET_DIAG_TOS, 133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 134 INET_DIAG_TCLASS, 135 INET_DIAG_SKMEMINFO, 136 INET_DIAG_SHUTDOWN, 137 INET_DIAG_DCTCPINFO, 138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 139 INET_DIAG_PROTOCOL, 140 INET_DIAG_SKV6ONLY, 141 INET_DIAG_LOCALS, 142 INET_DIAG_PEERS, 143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 144 INET_DIAG_PAD, 145 INET_DIAG_MARK, 146 INET_DIAG_BBRINFO, 147 __INET_DIAG_MAX, 148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 149 }; 150 #define INET_DIAG_MAX (__INET_DIAG_MAX - 1) 151 struct inet_diag_meminfo { 152 __u32 idiag_rmem; 153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 154 __u32 idiag_wmem; 155 __u32 idiag_fmem; 156 __u32 idiag_tmem; 157 }; 158 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 159 struct tcpvegas_info { 160 __u32 tcpv_enabled; 161 __u32 tcpv_rttcnt; 162 __u32 tcpv_rtt; 163 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 164 __u32 tcpv_minrtt; 165 }; 166 struct tcp_dctcp_info { 167 __u16 dctcp_enabled; 168 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 169 __u16 dctcp_ce_state; 170 __u32 dctcp_alpha; 171 __u32 dctcp_ab_ecn; 172 __u32 dctcp_ab_tot; 173 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 174 }; 175 struct tcp_bbr_info { 176 __u32 bbr_bw_lo; 177 __u32 bbr_bw_hi; 178 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 179 __u32 bbr_min_rtt; 180 __u32 bbr_pacing_gain; 181 __u32 bbr_cwnd_gain; 182 }; 183 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 184 union tcp_cc_info { 185 struct tcpvegas_info vegas; 186 struct tcp_dctcp_info dctcp; 187 struct tcp_bbr_info bbr; 188 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 189 }; 190 #endif 191