aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/inet_diag.h
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@parallels.com>2011-12-09 01:23:00 -0500
committerDavid S. Miller <davem@davemloft.net>2011-12-09 14:14:08 -0500
commit3c4d05c8056724aff3abc20650807dd828fded54 (patch)
tree5aed510034ceed980de3409587cbce8845229e77 /include/linux/inet_diag.h
parent8d07d1518a074a08b90be02eee5ee15e60ac9779 (diff)
inet_diag: Introduce the inet socket dumping routine
The existing inet_csk_diag_fill dumps the inet connection sock info into the netlink inet_diag_message. Prepare this routine to be able to dump only the inet_sock part of a socket if the icsk part is missing. This will be used by UDP diag module when dumping UDP sockets. Signed-off-by: Pavel Emelyanov <xemul@parallels.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/inet_diag.h')
-rw-r--r--include/linux/inet_diag.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/inet_diag.h b/include/linux/inet_diag.h
index 907c899bd41b..eaf5865c9e8a 100644
--- a/include/linux/inet_diag.h
+++ b/include/linux/inet_diag.h
@@ -136,6 +136,8 @@ struct tcpvegas_info {
136struct sock; 136struct sock;
137struct inet_hashinfo; 137struct inet_hashinfo;
138struct nlattr; 138struct nlattr;
139struct nlmsghdr;
140struct sk_buff;
139 141
140struct inet_diag_handler { 142struct inet_diag_handler {
141 struct inet_hashinfo *idiag_hashinfo; 143 struct inet_hashinfo *idiag_hashinfo;
@@ -145,6 +147,11 @@ struct inet_diag_handler {
145 __u16 idiag_type; 147 __u16 idiag_type;
146}; 148};
147 149
150struct inet_connection_sock;
151int inet_sk_diag_fill(struct sock *sk, struct inet_connection_sock *icsk,
152 struct sk_buff *skb, struct inet_diag_req *req,
153 u32 pid, u32 seq, u16 nlmsg_flags,
154 const struct nlmsghdr *unlh);
148int inet_diag_bc_sk(const struct nlattr *_bc, struct sock *sk); 155int inet_diag_bc_sk(const struct nlattr *_bc, struct sock *sk);
149int inet_diag_check_cookie(struct sock *sk, struct inet_diag_req *req); 156int inet_diag_check_cookie(struct sock *sk, struct inet_diag_req *req);
150 157