4 /* Just some random number */
5 #define TCPDIAG_GETSOCK 18
6 #define DCCPDIAG_GETSOCK 19
16 __u32 tcpdiag_cookie[2];
17 #define TCPDIAG_NOCOOKIE (~0U)
20 /* Request structure */
24 __u8 tcpdiag_family; /* Family of addresses. */
27 __u8 tcpdiag_ext; /* Query extended information */
29 struct tcpdiag_sockid id;
31 __u32 tcpdiag_states; /* States to dump */
32 __u32 tcpdiag_dbs; /* Tables to dump (NI) */
41 #define TCPDIAG_REQ_MAX TCPDIAG_REQ_BYTECODE
43 /* Bytecode is sequence of 4 byte commands followed by variable arguments.
44 * All the commands identified by "code" are conditional jumps forward:
45 * to offset cc+"yes" or to offset cc+"no". "yes" is supposed to be
46 * length of the command and its arguments.
69 struct tcpdiag_hostcond
77 /* Base info structure. It contains socket identity (addrs/ports/cookie)
78 * and, alas, the information shown by netstat. */
86 struct tcpdiag_sockid id;
88 __u32 tcpdiag_expires;
106 #define TCPDIAG_MAX TCPDIAG_CONG
111 struct tcpdiag_meminfo
119 /* TCPDIAG_VEGASINFO */
121 struct tcpvegas_info {
128 #endif /* _TCP_DIAG_H_ */