2 #define _INET_DIAG_H_ 1
4 #include <linux/types.h>
6 /* Just some random number */
7 #define TCPDIAG_GETSOCK 18
8 #define DCCPDIAG_GETSOCK 19
10 #define INET_DIAG_GETSOCK_MAX 24
13 struct inet_diag_sockid
{
19 __u32 idiag_cookie
[2];
20 #define INET_DIAG_NOCOOKIE (~0U)
23 /* Request structure */
25 struct inet_diag_req
{
26 __u8 idiag_family
; /* Family of addresses. */
29 __u8 idiag_ext
; /* Query extended information */
31 struct inet_diag_sockid id
;
33 __u32 idiag_states
; /* States to dump */
34 __u32 idiag_dbs
; /* Tables to dump (NI) */
39 INET_DIAG_REQ_BYTECODE
,
42 #define INET_DIAG_REQ_MAX INET_DIAG_REQ_BYTECODE
44 /* Bytecode is sequence of 4 byte commands followed by variable arguments.
45 * All the commands identified by "code" are conditional jumps forward:
46 * to offset cc+"yes" or to offset cc+"no". "yes" is supposed to be
47 * length of the command and its arguments.
50 struct inet_diag_bc_op
{
68 struct inet_diag_hostcond
{
75 /* Base info structure. It contains socket identity (addrs/ports/cookie)
76 * and, alas, the information shown by netstat. */
77 struct inet_diag_msg
{
83 struct inet_diag_sockid id
;
104 #define INET_DIAG_MAX INET_DIAG_TCLASS
109 struct inet_diag_meminfo
{
116 /* INET_DIAG_VEGASINFO */
118 struct tcpvegas_info
{
127 struct inet_hashinfo
;
129 struct inet_diag_handler
{
130 struct inet_hashinfo
*idiag_hashinfo
;
131 void (*idiag_get_info
)(struct sock
*sk
,
132 struct inet_diag_msg
*r
,
134 __u16 idiag_info_size
;
138 extern int inet_diag_register(const struct inet_diag_handler
*handler
);
139 extern void inet_diag_unregister(const struct inet_diag_handler
*handler
);
140 #endif /* __KERNEL__ */
142 #endif /* _INET_DIAG_H_ */
This page took 0.032632 seconds and 5 git commands to generate.