diff options
author | Lorenzo Colitti <lorenzo@google.com> | 2015-12-16 12:30:02 +0900 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-12-15 23:26:51 -0500 |
commit | b613f56ec9baf30edf5d9d607b822532a273dad7 (patch) | |
tree | d3b094e516eac4620aceec10b7316f3e0e8bf74b /include/linux/inet_diag.h | |
parent | fec65bd4e855c417b8408ed87824f9234fd0d795 (diff) | |
download | op-kernel-dev-b613f56ec9baf30edf5d9d607b822532a273dad7.zip op-kernel-dev-b613f56ec9baf30edf5d9d607b822532a273dad7.tar.gz |
net: diag: split inet_diag_dump_one_icsk into two
Currently, inet_diag_dump_one_icsk finds a socket and then dumps
its information to userspace. Split it into a part that finds the
socket and a part that dumps the information.
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Acked-by: Eric Dumazet <edumazet@google.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 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/inet_diag.h b/include/linux/inet_diag.h index 0e707f0..e7032f0 100644 --- a/include/linux/inet_diag.h +++ b/include/linux/inet_diag.h @@ -3,6 +3,7 @@ #include <uapi/linux/inet_diag.h> +struct net; struct sock; struct inet_hashinfo; struct nlattr; @@ -41,6 +42,10 @@ int inet_diag_dump_one_icsk(struct inet_hashinfo *hashinfo, struct sk_buff *in_skb, const struct nlmsghdr *nlh, const struct inet_diag_req_v2 *req); +struct sock *inet_diag_find_one_icsk(struct net *net, + struct inet_hashinfo *hashinfo, + const struct inet_diag_req_v2 *req); + int inet_diag_bc_sk(const struct nlattr *_bc, struct sock *sk); extern int inet_diag_register(const struct inet_diag_handler *handler); |