]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ipv6: constify inet6_csk_route_req() socket argument
authorEric Dumazet <edumazet@google.com>
Fri, 25 Sep 2015 14:39:13 +0000 (07:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Sep 2015 20:00:37 +0000 (13:00 -0700)
socket is not modified, make it const so that callers can
do the same if they need.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet6_connection_sock.h
net/ipv6/inet6_connection_sock.c

index 6d539e4e5ba731acb6ee949c0cc636fce93f435a..81d937e820c425047f3e22c5541d0649eab6a36c 100644 (file)
@@ -25,7 +25,7 @@ struct sockaddr;
 int inet6_csk_bind_conflict(const struct sock *sk,
                            const struct inet_bind_bucket *tb, bool relax);
 
-struct dst_entry *inet6_csk_route_req(struct sock *sk, struct flowi6 *fl6,
+struct dst_entry *inet6_csk_route_req(const struct sock *sk, struct flowi6 *fl6,
                                      const struct request_sock *req);
 
 struct request_sock *inet6_csk_search_req(struct sock *sk,
index 6927f3fb5597fd2013b885cddb35bed852b950d5..91b7d33f508b6b157cdf3148338770870fd9674d 100644 (file)
@@ -65,7 +65,7 @@ int inet6_csk_bind_conflict(const struct sock *sk,
 }
 EXPORT_SYMBOL_GPL(inet6_csk_bind_conflict);
 
-struct dst_entry *inet6_csk_route_req(struct sock *sk,
+struct dst_entry *inet6_csk_route_req(const struct sock *sk,
                                      struct flowi6 *fl6,
                                      const struct request_sock *req)
 {