aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@mandriva.com>2005-08-12 08:27:49 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2005-08-29 18:57:38 -0400
commit4f5736c4c7cf6f9bd8db82b712cfdd51c87e06b9 (patch)
tree403d4b49b4c1d51445f3ff279d75f74a39e2cc17 /include/linux
parent5324a040ccc708998e61ea93e669b81312f0ae11 (diff)
[TCPDIAG]: Introduce inet_diag_{register,unregister}
Next changeset will rename tcp_diag to inet_diag and move the tcp_diag code out of it and into a new tcp_diag.c, similar to the net/dccp/diag.c introduced in this changeset, completing the transition to a generic inet_diag infrastructure. Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/tcp_diag.h19
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 */
9struct tcpdiag_sockid 11struct 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__
131struct sock;
132struct inet_hashinfo;
133
134struct 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
143extern int inet_diag_register(const struct inet_diag_handler *handler);
144extern void inet_diag_unregister(const struct inet_diag_handler *handler);
145#endif /* __KERNEL__ */
146
128#endif /* _TCP_DIAG_H_ */ 147#endif /* _TCP_DIAG_H_ */