aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/inet_diag.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/inet_diag.c')
-rw-r--r--net/ipv4/inet_diag.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/net/ipv4/inet_diag.c b/net/ipv4/inet_diag.c
index cd261f6e3abb..ac3bfb458afd 100644
--- a/net/ipv4/inet_diag.c
+++ b/net/ipv4/inet_diag.c
@@ -71,7 +71,7 @@ static void inet_diag_unlock_handler(const struct inet_diag_handler *handler)
71} 71}
72 72
73int inet_sk_diag_fill(struct sock *sk, struct inet_connection_sock *icsk, 73int inet_sk_diag_fill(struct sock *sk, struct inet_connection_sock *icsk,
74 struct sk_buff *skb, struct inet_diag_req_v2 *req, 74 struct sk_buff *skb, const struct inet_diag_req_v2 *req,
75 struct user_namespace *user_ns, 75 struct user_namespace *user_ns,
76 u32 portid, u32 seq, u16 nlmsg_flags, 76 u32 portid, u32 seq, u16 nlmsg_flags,
77 const struct nlmsghdr *unlh) 77 const struct nlmsghdr *unlh)
@@ -212,7 +212,7 @@ EXPORT_SYMBOL_GPL(inet_sk_diag_fill);
212 212
213static int inet_csk_diag_fill(struct sock *sk, 213static int inet_csk_diag_fill(struct sock *sk,
214 struct sk_buff *skb, 214 struct sk_buff *skb,
215 struct inet_diag_req_v2 *req, 215 const struct inet_diag_req_v2 *req,
216 struct user_namespace *user_ns, 216 struct user_namespace *user_ns,
217 u32 portid, u32 seq, u16 nlmsg_flags, 217 u32 portid, u32 seq, u16 nlmsg_flags,
218 const struct nlmsghdr *unlh) 218 const struct nlmsghdr *unlh)
@@ -223,7 +223,7 @@ static int inet_csk_diag_fill(struct sock *sk,
223 223
224static int inet_twsk_diag_fill(struct inet_timewait_sock *tw, 224static int inet_twsk_diag_fill(struct inet_timewait_sock *tw,
225 struct sk_buff *skb, 225 struct sk_buff *skb,
226 struct inet_diag_req_v2 *req, 226 const struct inet_diag_req_v2 *req,
227 u32 portid, u32 seq, u16 nlmsg_flags, 227 u32 portid, u32 seq, u16 nlmsg_flags,
228 const struct nlmsghdr *unlh) 228 const struct nlmsghdr *unlh)
229{ 229{
@@ -277,7 +277,7 @@ static int inet_twsk_diag_fill(struct inet_timewait_sock *tw,
277} 277}
278 278
279static int sk_diag_fill(struct sock *sk, struct sk_buff *skb, 279static int sk_diag_fill(struct sock *sk, struct sk_buff *skb,
280 struct inet_diag_req_v2 *r, 280 const struct inet_diag_req_v2 *r,
281 struct user_namespace *user_ns, 281 struct user_namespace *user_ns,
282 u32 portid, u32 seq, u16 nlmsg_flags, 282 u32 portid, u32 seq, u16 nlmsg_flags,
283 const struct nlmsghdr *unlh) 283 const struct nlmsghdr *unlh)
@@ -293,7 +293,7 @@ static int sk_diag_fill(struct sock *sk, struct sk_buff *skb,
293int inet_diag_dump_one_icsk(struct inet_hashinfo *hashinfo, 293int inet_diag_dump_one_icsk(struct inet_hashinfo *hashinfo,
294 struct sk_buff *in_skb, 294 struct sk_buff *in_skb,
295 const struct nlmsghdr *nlh, 295 const struct nlmsghdr *nlh,
296 struct inet_diag_req_v2 *req) 296 const struct inet_diag_req_v2 *req)
297{ 297{
298 struct net *net = sock_net(in_skb->sk); 298 struct net *net = sock_net(in_skb->sk);
299 struct sk_buff *rep; 299 struct sk_buff *rep;
@@ -358,7 +358,7 @@ EXPORT_SYMBOL_GPL(inet_diag_dump_one_icsk);
358 358
359static int inet_diag_get_exact(struct sk_buff *in_skb, 359static int inet_diag_get_exact(struct sk_buff *in_skb,
360 const struct nlmsghdr *nlh, 360 const struct nlmsghdr *nlh,
361 struct inet_diag_req_v2 *req) 361 const struct inet_diag_req_v2 *req)
362{ 362{
363 const struct inet_diag_handler *handler; 363 const struct inet_diag_handler *handler;
364 int err; 364 int err;
@@ -626,7 +626,7 @@ static int inet_diag_bc_audit(const void *bytecode, int bytecode_len)
626static int inet_csk_diag_dump(struct sock *sk, 626static int inet_csk_diag_dump(struct sock *sk,
627 struct sk_buff *skb, 627 struct sk_buff *skb,
628 struct netlink_callback *cb, 628 struct netlink_callback *cb,
629 struct inet_diag_req_v2 *r, 629 const struct inet_diag_req_v2 *r,
630 const struct nlattr *bc) 630 const struct nlattr *bc)
631{ 631{
632 if (!inet_diag_bc_sk(bc, sk)) 632 if (!inet_diag_bc_sk(bc, sk))
@@ -667,7 +667,7 @@ static void twsk_build_assert(void)
667static int inet_twsk_diag_dump(struct sock *sk, 667static int inet_twsk_diag_dump(struct sock *sk,
668 struct sk_buff *skb, 668 struct sk_buff *skb,
669 struct netlink_callback *cb, 669 struct netlink_callback *cb,
670 struct inet_diag_req_v2 *r, 670 const struct inet_diag_req_v2 *r,
671 const struct nlattr *bc) 671 const struct nlattr *bc)
672{ 672{
673 twsk_build_assert(); 673 twsk_build_assert();
@@ -770,7 +770,7 @@ static int inet_diag_fill_req(struct sk_buff *skb, struct sock *sk,
770 770
771static int inet_diag_dump_reqs(struct sk_buff *skb, struct sock *sk, 771static int inet_diag_dump_reqs(struct sk_buff *skb, struct sock *sk,
772 struct netlink_callback *cb, 772 struct netlink_callback *cb,
773 struct inet_diag_req_v2 *r, 773 const struct inet_diag_req_v2 *r,
774 const struct nlattr *bc) 774 const struct nlattr *bc)
775{ 775{
776 struct inet_connection_sock *icsk = inet_csk(sk); 776 struct inet_connection_sock *icsk = inet_csk(sk);
@@ -842,7 +842,7 @@ out:
842 842
843void inet_diag_dump_icsk(struct inet_hashinfo *hashinfo, struct sk_buff *skb, 843void inet_diag_dump_icsk(struct inet_hashinfo *hashinfo, struct sk_buff *skb,
844 struct netlink_callback *cb, 844 struct netlink_callback *cb,
845 struct inet_diag_req_v2 *r, struct nlattr *bc) 845 const struct inet_diag_req_v2 *r, struct nlattr *bc)
846{ 846{
847 struct net *net = sock_net(skb->sk); 847 struct net *net = sock_net(skb->sk);
848 int i, num, s_i, s_num; 848 int i, num, s_i, s_num;
@@ -978,7 +978,7 @@ out:
978EXPORT_SYMBOL_GPL(inet_diag_dump_icsk); 978EXPORT_SYMBOL_GPL(inet_diag_dump_icsk);
979 979
980static int __inet_diag_dump(struct sk_buff *skb, struct netlink_callback *cb, 980static int __inet_diag_dump(struct sk_buff *skb, struct netlink_callback *cb,
981 struct inet_diag_req_v2 *r, 981 const struct inet_diag_req_v2 *r,
982 struct nlattr *bc) 982 struct nlattr *bc)
983{ 983{
984 const struct inet_diag_handler *handler; 984 const struct inet_diag_handler *handler;