blob: efd8f53e3aa20439f68ae02be8dcc3799347f444 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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
26struct inet_diag_sockid {
Tao Baod7db5942015-01-28 10:07:51 -080027 __be16 idiag_sport;
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029 __be16 idiag_dport;
30 __be32 idiag_src[4];
31 __be32 idiag_dst[4];
32 __u32 idiag_if;
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 __u32 idiag_cookie[2];
Ben Cheng655a7c02013-10-16 16:09:24 -070035#define INET_DIAG_NOCOOKIE (~0U)
36};
37struct inet_diag_req {
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 __u8 idiag_family;
40 __u8 idiag_src_len;
41 __u8 idiag_dst_len;
42 __u8 idiag_ext;
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 struct inet_diag_sockid id;
45 __u32 idiag_states;
46 __u32 idiag_dbs;
Ben Cheng655a7c02013-10-16 16:09:24 -070047};
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49struct inet_diag_req_v2 {
Tao Baod7db5942015-01-28 10:07:51 -080050 __u8 sdiag_family;
51 __u8 sdiag_protocol;
52 __u8 idiag_ext;
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 __u8 pad;
55 __u32 idiag_states;
56 struct inet_diag_sockid id;
Ben Cheng655a7c02013-10-16 16:09:24 -070057};
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080059struct 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 */
Ben Cheng655a7c02013-10-16 16:09:24 -070069enum {
Tao Baod7db5942015-01-28 10:07:51 -080070 INET_DIAG_REQ_NONE,
71 INET_DIAG_REQ_BYTECODE,
Ben Cheng655a7c02013-10-16 16:09:24 -070072};
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74#define INET_DIAG_REQ_MAX INET_DIAG_REQ_BYTECODE
75struct inet_diag_bc_op {
Tao Baod7db5942015-01-28 10:07:51 -080076 unsigned char code;
77 unsigned char yes;
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080079 unsigned short no;
Ben Cheng655a7c02013-10-16 16:09:24 -070080};
81enum {
Tao Baod7db5942015-01-28 10:07:51 -080082 INET_DIAG_BC_NOP,
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080084 INET_DIAG_BC_JMP,
85 INET_DIAG_BC_S_GE,
86 INET_DIAG_BC_S_LE,
87 INET_DIAG_BC_D_GE,
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080089 INET_DIAG_BC_D_LE,
90 INET_DIAG_BC_AUTO,
91 INET_DIAG_BC_S_COND,
92 INET_DIAG_BC_D_COND,
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -080094 INET_DIAG_BC_DEV_COND,
Christopher Ferris6a9755d2017-01-13 14:09:31 -080095 INET_DIAG_BC_MARK_COND,
Ben Cheng655a7c02013-10-16 16:09:24 -070096};
97struct inet_diag_hostcond {
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -080099 __u8 family;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800100 __u8 prefix_len;
Tao Baod7db5942015-01-28 10:07:51 -0800101 int port;
102 __be32 addr[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800104};
105struct inet_diag_markcond {
106 __u32 mark;
107 __u32 mask;
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109};
Christopher Ferris49f525c2016-12-12 14:55:36 -0800110struct inet_diag_msg {
Tao Baod7db5942015-01-28 10:07:51 -0800111 __u8 idiag_family;
112 __u8 idiag_state;
Ben Cheng655a7c02013-10-16 16:09:24 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800114 __u8 idiag_timer;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800115 __u8 idiag_retrans;
Tao Baod7db5942015-01-28 10:07:51 -0800116 struct inet_diag_sockid id;
117 __u32 idiag_expires;
Ben Cheng655a7c02013-10-16 16:09:24 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800119 __u32 idiag_rqueue;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800120 __u32 idiag_wqueue;
Tao Baod7db5942015-01-28 10:07:51 -0800121 __u32 idiag_uid;
122 __u32 idiag_inode;
Ben Cheng655a7c02013-10-16 16:09:24 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800124};
Christopher Ferris49f525c2016-12-12 14:55:36 -0800125enum {
Tao Baod7db5942015-01-28 10:07:51 -0800126 INET_DIAG_NONE,
127 INET_DIAG_MEMINFO,
Ben Cheng655a7c02013-10-16 16:09:24 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800129 INET_DIAG_INFO,
Christopher Ferris49f525c2016-12-12 14:55:36 -0800130 INET_DIAG_VEGASINFO,
Tao Baod7db5942015-01-28 10:07:51 -0800131 INET_DIAG_CONG,
132 INET_DIAG_TOS,
Ben Cheng655a7c02013-10-16 16:09:24 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800134 INET_DIAG_TCLASS,
Christopher Ferris49f525c2016-12-12 14:55:36 -0800135 INET_DIAG_SKMEMINFO,
Tao Baod7db5942015-01-28 10:07:51 -0800136 INET_DIAG_SHUTDOWN,
137 INET_DIAG_DCTCPINFO,
Ben Cheng655a7c02013-10-16 16:09:24 -0700138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800139 INET_DIAG_PROTOCOL,
Christopher Ferris49f525c2016-12-12 14:55:36 -0800140 INET_DIAG_SKV6ONLY,
Christopher Ferris106b3a82016-08-24 12:15:38 -0700141 INET_DIAG_LOCALS,
142 INET_DIAG_PEERS,
Christopher Ferris106b3a82016-08-24 12:15:38 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800144 INET_DIAG_PAD,
145 INET_DIAG_MARK,
146 INET_DIAG_BBRINFO,
Christopher Ferris49f525c2016-12-12 14:55:36 -0800147 __INET_DIAG_MAX,
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800149};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700150#define INET_DIAG_MAX (__INET_DIAG_MAX - 1)
Christopher Ferris82d75042015-01-26 10:57:07 -0800151struct inet_diag_meminfo {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800152 __u32 idiag_rmem;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800154 __u32 idiag_wmem;
155 __u32 idiag_fmem;
Tao Baod7db5942015-01-28 10:07:51 -0800156 __u32 idiag_tmem;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800157};
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700159struct tcpvegas_info {
Tao Baod7db5942015-01-28 10:07:51 -0800160 __u32 tcpv_enabled;
Tao Baod7db5942015-01-28 10:07:51 -0800161 __u32 tcpv_rttcnt;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800162 __u32 tcpv_rtt;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800164 __u32 tcpv_minrtt;
Ben Cheng655a7c02013-10-16 16:09:24 -0700165};
Christopher Ferris82d75042015-01-26 10:57:07 -0800166struct tcp_dctcp_info {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800167 __u16 dctcp_enabled;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800169 __u16 dctcp_ce_state;
170 __u32 dctcp_alpha;
Tao Baod7db5942015-01-28 10:07:51 -0800171 __u32 dctcp_ab_ecn;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800172 __u32 dctcp_ab_tot;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800174};
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800175struct 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 */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800184union tcp_cc_info {
185 struct tcpvegas_info vegas;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800186 struct tcp_dctcp_info dctcp;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800187 struct tcp_bbr_info bbr;
188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris82d75042015-01-26 10:57:07 -0800189};
Ben Cheng655a7c02013-10-16 16:09:24 -0700190#endif