4 /* Just some random number */
5 #define TCPDIAG_GETSOCK 18
15 __u32 tcpdiag_cookie[2];
16 #define TCPDIAG_NOCOOKIE (~0U)
19 /* Request structure */
23 __u8 tcpdiag_family; /* Family of addresses. */
26 __u8 tcpdiag_ext; /* Query extended information */
28 struct tcpdiag_sockid id;
30 __u32 tcpdiag_states; /* States to dump */
31 __u32 tcpdiag_dbs; /* Tables to dump (NI) */
40 #define TCPDIAG_REQ_MAX TCPDIAG_REQ_BYTECODE
42 /* Bytecode is sequence of 4 byte commands followed by variable arguments.
43 * All the commands identified by "code" are conditional jumps forward:
44 * to offset cc+"yes" or to offset cc+"no". "yes" is supposed to be
45 * length of the command and its arguments.
68 struct tcpdiag_hostcond
76 /* Base info structure. It contains socket identity (addrs/ports/cookie)
77 * and, alas, the information shown by netstat. */
85 struct tcpdiag_sockid id;
87 __u32 tcpdiag_expires;
105 #define TCPDIAG_MAX TCPDIAG_CONG
110 struct tcpdiag_meminfo
118 /* TCPDIAG_VEGASINFO */
120 struct tcpvegas_info {
127 #endif /* _TCP_DIAG_H_ */