diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/tcp_diag.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/tcp_diag.h b/include/linux/tcp_diag.h index 190494ebcfb8..910c34ba19c0 100644 --- a/include/linux/tcp_diag.h +++ b/include/linux/tcp_diag.h | |||
@@ -5,6 +5,8 @@ | |||
5 | #define TCPDIAG_GETSOCK 18 | 5 | #define TCPDIAG_GETSOCK 18 |
6 | #define DCCPDIAG_GETSOCK 19 | 6 | #define DCCPDIAG_GETSOCK 19 |
7 | 7 | ||
8 | #define INET_DIAG_GETSOCK_MAX 24 | ||
9 | |||
8 | /* Socket identity */ | 10 | /* Socket identity */ |
9 | struct tcpdiag_sockid | 11 | struct tcpdiag_sockid |
10 | { | 12 | { |
@@ -125,4 +127,21 @@ struct tcpvegas_info { | |||
125 | __u32 tcpv_minrtt; | 127 | __u32 tcpv_minrtt; |
126 | }; | 128 | }; |
127 | 129 | ||
130 | #ifdef __KERNEL__ | ||
131 | struct sock; | ||
132 | struct inet_hashinfo; | ||
133 | |||
134 | struct inet_diag_handler { | ||
135 | struct inet_hashinfo *idiag_hashinfo; | ||
136 | void (*idiag_get_info)(struct sock *sk, | ||
137 | struct tcpdiagmsg *r, | ||
138 | void *info); | ||
139 | __u16 idiag_info_size; | ||
140 | __u16 idiag_type; | ||
141 | }; | ||
142 | |||
143 | extern int inet_diag_register(const struct inet_diag_handler *handler); | ||
144 | extern void inet_diag_unregister(const struct inet_diag_handler *handler); | ||
145 | #endif /* __KERNEL__ */ | ||
146 | |||
128 | #endif /* _TCP_DIAG_H_ */ | 147 | #endif /* _TCP_DIAG_H_ */ |