]>
git.proxmox.com Git - mirror_iproute2.git/blob - include/tcp_diag.h
4 /* Replace with dymanically allocated value */
5 #define NETLINK_TCPDIAG 4
7 /* Just some random number */
8 #define TCPDIAG_GETSOCK 18
18 __u32 tcpdiag_cookie
[2];
19 #define TCPDIAG_NOCOOKIE (~0U)
22 /* Request structure */
26 __u8 tcpdiag_family
; /* Family of addresses. */
29 __u8 tcpdiag_ext
; /* Query extended information */
31 struct tcpdiag_sockid id
;
33 __u32 tcpdiag_states
; /* States to dump */
34 __u32 tcpdiag_dbs
; /* Tables to dump (NI) */
43 #define TCPDIAG_REQ_MAX TCPDIAG_REQ_BYTECODE
45 /* Bytecode is sequence of 4 byte commands followed by variable arguments.
46 * All the commands identified by "code" are conditional jumps forward:
47 * to offset cc+"yes" or to offset cc+"no". "yes" is supposed to be
48 * length of the command and its arguments.
71 struct tcpdiag_hostcond
79 /* Base info structure. It contains socket identity (addrs/ports/cookie)
80 * and, alas, the information shown by netstat. */
88 struct tcpdiag_sockid id
;
90 __u32 tcpdiag_expires
;
106 #define TCPDIAG_MAX TCPDIAG_INFO
111 struct tcpdiag_meminfo
119 #endif /* _TCP_DIAG_H_ */