blob: 447d92821f729cdd684442830d001f7422ab7f19 [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 */
59enum {
Tao Baod7db5942015-01-28 10:07:51 -080060 INET_DIAG_REQ_NONE,
61 INET_DIAG_REQ_BYTECODE,
Ben Cheng655a7c02013-10-16 16:09:24 -070062};
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 {
Tao Baod7db5942015-01-28 10:07:51 -080066 unsigned char code;
67 unsigned char yes;
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080069 unsigned short no;
Ben Cheng655a7c02013-10-16 16:09:24 -070070};
71enum {
Tao Baod7db5942015-01-28 10:07:51 -080072 INET_DIAG_BC_NOP,
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080074 INET_DIAG_BC_JMP,
75 INET_DIAG_BC_S_GE,
76 INET_DIAG_BC_S_LE,
77 INET_DIAG_BC_D_GE,
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 INET_DIAG_BC_D_LE,
80 INET_DIAG_BC_AUTO,
81 INET_DIAG_BC_S_COND,
82 INET_DIAG_BC_D_COND,
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84};
85struct inet_diag_hostcond {
Tao Baod7db5942015-01-28 10:07:51 -080086 __u8 family;
87 __u8 prefix_len;
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 int port;
90 __be32 addr[0];
Ben Cheng655a7c02013-10-16 16:09:24 -070091};
92struct inet_diag_msg {
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080094 __u8 idiag_family;
95 __u8 idiag_state;
96 __u8 idiag_timer;
97 __u8 idiag_retrans;
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080099 struct inet_diag_sockid id;
100 __u32 idiag_expires;
101 __u32 idiag_rqueue;
102 __u32 idiag_wqueue;
Ben Cheng655a7c02013-10-16 16:09:24 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800104 __u32 idiag_uid;
105 __u32 idiag_inode;
Ben Cheng655a7c02013-10-16 16:09:24 -0700106};
107enum {
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800109 INET_DIAG_NONE,
110 INET_DIAG_MEMINFO,
111 INET_DIAG_INFO,
112 INET_DIAG_VEGASINFO,
Ben Cheng655a7c02013-10-16 16:09:24 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800114 INET_DIAG_CONG,
115 INET_DIAG_TOS,
116 INET_DIAG_TCLASS,
117 INET_DIAG_SKMEMINFO,
Ben Cheng655a7c02013-10-16 16:09:24 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800119 INET_DIAG_SHUTDOWN,
120 INET_DIAG_DCTCPINFO,
Ben Cheng655a7c02013-10-16 16:09:24 -0700121};
Christopher Ferris82d75042015-01-26 10:57:07 -0800122#define INET_DIAG_MAX INET_DIAG_DCTCPINFO
Ben Cheng655a7c02013-10-16 16:09:24 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris82d75042015-01-26 10:57:07 -0800124struct inet_diag_meminfo {
Tao Baod7db5942015-01-28 10:07:51 -0800125 __u32 idiag_rmem;
126 __u32 idiag_wmem;
127 __u32 idiag_fmem;
Ben Cheng655a7c02013-10-16 16:09:24 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800129 __u32 idiag_tmem;
Ben Cheng655a7c02013-10-16 16:09:24 -0700130};
131struct tcpvegas_info {
Tao Baod7db5942015-01-28 10:07:51 -0800132 __u32 tcpv_enabled;
Ben Cheng655a7c02013-10-16 16:09:24 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800134 __u32 tcpv_rttcnt;
135 __u32 tcpv_rtt;
136 __u32 tcpv_minrtt;
Ben Cheng655a7c02013-10-16 16:09:24 -0700137};
Christopher Ferris82d75042015-01-26 10:57:07 -0800138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139struct tcp_dctcp_info {
Tao Baod7db5942015-01-28 10:07:51 -0800140 __u16 dctcp_enabled;
141 __u16 dctcp_ce_state;
142 __u32 dctcp_alpha;
Christopher Ferris82d75042015-01-26 10:57:07 -0800143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800144 __u32 dctcp_ab_ecn;
145 __u32 dctcp_ab_tot;
Christopher Ferris82d75042015-01-26 10:57:07 -0800146};
Ben Cheng655a7c02013-10-16 16:09:24 -0700147#endif
148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */