aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/diag.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/dccp/diag.c')
-rw-r--r--net/dccp/diag.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/net/dccp/diag.c b/net/dccp/diag.c
index 9343f52db284..e29214d193d6 100644
--- a/net/dccp/diag.c
+++ b/net/dccp/diag.c
@@ -48,8 +48,21 @@ static void dccp_diag_get_info(struct sock *sk, struct inet_diag_msg *r,
48 dccp_get_info(sk, _info); 48 dccp_get_info(sk, _info);
49} 49}
50 50
51static void dccp_diag_dump(struct sk_buff *skb, struct netlink_callback *cb,
52 struct inet_diag_req *r, struct nlattr *bc)
53{
54 inet_diag_dump_icsk(&dccp_hashinfo, skb, cb, r, bc);
55}
56
57static int dccp_diag_dump_one(struct sk_buff *in_skb, const struct nlmsghdr *nlh,
58 struct inet_diag_req *req)
59{
60 return inet_diag_dump_one_icsk(&dccp_hashinfo, in_skb, nlh, req);
61}
62
51static const struct inet_diag_handler dccp_diag_handler = { 63static const struct inet_diag_handler dccp_diag_handler = {
52 .idiag_hashinfo = &dccp_hashinfo, 64 .dump = dccp_diag_dump,
65 .dump_one = dccp_diag_dump_one,
53 .idiag_get_info = dccp_diag_get_info, 66 .idiag_get_info = dccp_diag_get_info,
54 .idiag_type = IPPROTO_DCCP, 67 .idiag_type = IPPROTO_DCCP,
55}; 68};