inet_diag.h revision 6a9755d20a995756487bb1aafb7e954f4fd868a7
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
26struct 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};
37struct 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 */
49struct 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 */
59enum {
60  INET_DIAG_REQ_NONE,
61  INET_DIAG_REQ_BYTECODE,
62};
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64#define INET_DIAG_REQ_MAX INET_DIAG_REQ_BYTECODE
65struct inet_diag_bc_op {
66  unsigned char code;
67  unsigned char yes;
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69  unsigned short no;
70};
71enum {
72  INET_DIAG_BC_NOP,
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74  INET_DIAG_BC_JMP,
75  INET_DIAG_BC_S_GE,
76  INET_DIAG_BC_S_LE,
77  INET_DIAG_BC_D_GE,
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79  INET_DIAG_BC_D_LE,
80  INET_DIAG_BC_AUTO,
81  INET_DIAG_BC_S_COND,
82  INET_DIAG_BC_D_COND,
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84  INET_DIAG_BC_DEV_COND,
85  INET_DIAG_BC_MARK_COND,
86};
87struct inet_diag_hostcond {
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89  __u8 family;
90  __u8 prefix_len;
91  int port;
92  __be32 addr[0];
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94};
95struct inet_diag_markcond {
96  __u32 mark;
97  __u32 mask;
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99};
100struct inet_diag_msg {
101  __u8 idiag_family;
102  __u8 idiag_state;
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104  __u8 idiag_timer;
105  __u8 idiag_retrans;
106  struct inet_diag_sockid id;
107  __u32 idiag_expires;
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109  __u32 idiag_rqueue;
110  __u32 idiag_wqueue;
111  __u32 idiag_uid;
112  __u32 idiag_inode;
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114};
115enum {
116  INET_DIAG_NONE,
117  INET_DIAG_MEMINFO,
118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119  INET_DIAG_INFO,
120  INET_DIAG_VEGASINFO,
121  INET_DIAG_CONG,
122  INET_DIAG_TOS,
123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124  INET_DIAG_TCLASS,
125  INET_DIAG_SKMEMINFO,
126  INET_DIAG_SHUTDOWN,
127  INET_DIAG_DCTCPINFO,
128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129  INET_DIAG_PROTOCOL,
130  INET_DIAG_SKV6ONLY,
131  INET_DIAG_LOCALS,
132  INET_DIAG_PEERS,
133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134  INET_DIAG_PAD,
135  INET_DIAG_MARK,
136  INET_DIAG_BBRINFO,
137  __INET_DIAG_MAX,
138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139};
140#define INET_DIAG_MAX (__INET_DIAG_MAX - 1)
141struct inet_diag_meminfo {
142  __u32 idiag_rmem;
143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
144  __u32 idiag_wmem;
145  __u32 idiag_fmem;
146  __u32 idiag_tmem;
147};
148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
149struct tcpvegas_info {
150  __u32 tcpv_enabled;
151  __u32 tcpv_rttcnt;
152  __u32 tcpv_rtt;
153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
154  __u32 tcpv_minrtt;
155};
156struct tcp_dctcp_info {
157  __u16 dctcp_enabled;
158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
159  __u16 dctcp_ce_state;
160  __u32 dctcp_alpha;
161  __u32 dctcp_ab_ecn;
162  __u32 dctcp_ab_tot;
163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
164};
165struct tcp_bbr_info {
166  __u32 bbr_bw_lo;
167  __u32 bbr_bw_hi;
168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
169  __u32 bbr_min_rtt;
170  __u32 bbr_pacing_gain;
171  __u32 bbr_cwnd_gain;
172};
173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
174union tcp_cc_info {
175  struct tcpvegas_info vegas;
176  struct tcp_dctcp_info dctcp;
177  struct tcp_bbr_info bbr;
178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
179};
180#endif
181