Commit 30d50c61 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller

ipv6: constify inet6_csk_route_req() socket argument

socket is not modified, make it const so that callers can
do the same if they need.
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3aef934f
...@@ -25,7 +25,7 @@ struct sockaddr; ...@@ -25,7 +25,7 @@ struct sockaddr;
int inet6_csk_bind_conflict(const struct sock *sk, int inet6_csk_bind_conflict(const struct sock *sk,
const struct inet_bind_bucket *tb, bool relax); 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); const struct request_sock *req);
struct request_sock *inet6_csk_search_req(struct sock *sk, struct request_sock *inet6_csk_search_req(struct sock *sk,
......
...@@ -65,7 +65,7 @@ int inet6_csk_bind_conflict(const struct sock *sk, ...@@ -65,7 +65,7 @@ int inet6_csk_bind_conflict(const struct sock *sk,
} }
EXPORT_SYMBOL_GPL(inet6_csk_bind_conflict); 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, struct flowi6 *fl6,
const struct request_sock *req) const struct request_sock *req)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment