diff options
author | Eric Dumazet <edumazet@google.com> | 2015-03-10 10:15:54 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-10 13:45:28 -0400 |
commit | 34160ea3f9c96b5ae71a11459f9b9f6c298b8930 (patch) | |
tree | a2b18975c94f3a924a24a09301bfac37f34d888f /net/dccp | |
parent | e31c5e0e486226e0808a2e90a7af40daa084ed09 (diff) |
inet_diag: add const to inet_diag_req_v2
diag dumpers should not modify the request.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp')
-rw-r--r-- | net/dccp/diag.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/dccp/diag.c b/net/dccp/diag.c index 028fc43aacbd..5a45f8de5d99 100644 --- a/net/dccp/diag.c +++ b/net/dccp/diag.c | |||
@@ -49,13 +49,14 @@ static void dccp_diag_get_info(struct sock *sk, struct inet_diag_msg *r, | |||
49 | } | 49 | } |
50 | 50 | ||
51 | static void dccp_diag_dump(struct sk_buff *skb, struct netlink_callback *cb, | 51 | static void dccp_diag_dump(struct sk_buff *skb, struct netlink_callback *cb, |
52 | struct inet_diag_req_v2 *r, struct nlattr *bc) | 52 | const struct inet_diag_req_v2 *r, struct nlattr *bc) |
53 | { | 53 | { |
54 | inet_diag_dump_icsk(&dccp_hashinfo, skb, cb, r, bc); | 54 | inet_diag_dump_icsk(&dccp_hashinfo, skb, cb, r, bc); |
55 | } | 55 | } |
56 | 56 | ||
57 | static int dccp_diag_dump_one(struct sk_buff *in_skb, const struct nlmsghdr *nlh, | 57 | static int dccp_diag_dump_one(struct sk_buff *in_skb, |
58 | struct inet_diag_req_v2 *req) | 58 | const struct nlmsghdr *nlh, |
59 | const struct inet_diag_req_v2 *req) | ||
59 | { | 60 | { |
60 | return inet_diag_dump_one_icsk(&dccp_hashinfo, in_skb, nlh, req); | 61 | return inet_diag_dump_one_icsk(&dccp_hashinfo, in_skb, nlh, req); |
61 | } | 62 | } |