• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 enum {
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
65 struct 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 };
71 enum {
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 };
85 struct inet_diag_hostcond {
86  __u8 family;
87  __u8 prefix_len;
88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89  int port;
90  __be32 addr[0];
91 };
92 struct inet_diag_msg {
93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94  __u8 idiag_family;
95  __u8 idiag_state;
96  __u8 idiag_timer;
97  __u8 idiag_retrans;
98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99  struct inet_diag_sockid id;
100  __u32 idiag_expires;
101  __u32 idiag_rqueue;
102  __u32 idiag_wqueue;
103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104  __u32 idiag_uid;
105  __u32 idiag_inode;
106 };
107 enum {
108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109  INET_DIAG_NONE,
110  INET_DIAG_MEMINFO,
111  INET_DIAG_INFO,
112  INET_DIAG_VEGASINFO,
113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114  INET_DIAG_CONG,
115  INET_DIAG_TOS,
116  INET_DIAG_TCLASS,
117  INET_DIAG_SKMEMINFO,
118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119  INET_DIAG_SHUTDOWN,
120 };
121 #define INET_DIAG_MAX INET_DIAG_SHUTDOWN
122 struct inet_diag_meminfo {
123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124  __u32 idiag_rmem;
125  __u32 idiag_wmem;
126  __u32 idiag_fmem;
127  __u32 idiag_tmem;
128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129 };
130 struct tcpvegas_info {
131  __u32 tcpv_enabled;
132  __u32 tcpv_rttcnt;
133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134  __u32 tcpv_rtt;
135  __u32 tcpv_minrtt;
136 };
137 #endif
138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139