diff options
author | Pavel Emelyanov <xemul@parallels.com> | 2011-12-09 01:23:00 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-12-09 14:14:08 -0500 |
commit | 3c4d05c8056724aff3abc20650807dd828fded54 (patch) | |
tree | 5aed510034ceed980de3409587cbce8845229e77 /include/linux/inet_diag.h | |
parent | 8d07d1518a074a08b90be02eee5ee15e60ac9779 (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.h | 7 |
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 { | |||
136 | struct sock; | 136 | struct sock; |
137 | struct inet_hashinfo; | 137 | struct inet_hashinfo; |
138 | struct nlattr; | 138 | struct nlattr; |
139 | struct nlmsghdr; | ||
140 | struct sk_buff; | ||
139 | 141 | ||
140 | struct inet_diag_handler { | 142 | struct 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 | ||
150 | struct inet_connection_sock; | ||
151 | int 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); | ||
148 | int inet_diag_bc_sk(const struct nlattr *_bc, struct sock *sk); | 155 | int inet_diag_bc_sk(const struct nlattr *_bc, struct sock *sk); |
149 | int inet_diag_check_cookie(struct sock *sk, struct inet_diag_req *req); | 156 | int inet_diag_check_cookie(struct sock *sk, struct inet_diag_req *req); |
150 | 157 | ||