summaryrefslogtreecommitdiffstats
path: root/include/net/inet_connection_sock.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2015-09-25 16:39:11 +0200
committerDavid S. Miller <davem@davemloft.net>2015-09-25 22:00:37 +0200
commite5895bc600ccba1fde4ea0741813f9c33b5b4021 (patch)
treeca8ac225bd07d3f213f9fc1acbce95e6c730e233 /include/net/inet_connection_sock.h
parentinet: constify ip_route_output_flow() socket argument (diff)
downloadlinux-e5895bc600ccba1fde4ea0741813f9c33b5b4021.tar.xz
linux-e5895bc600ccba1fde4ea0741813f9c33b5b4021.zip
inet: constify inet_csk_route_req() socket argument
This is used by TCP listener core, and listener socket shall not be modified by inet_csk_route_req(). Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/inet_connection_sock.h')
-rw-r--r--include/net/inet_connection_sock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/inet_connection_sock.h b/include/net/inet_connection_sock.h
index 0320bbb7d7b5..00c3ced6ee55 100644
--- a/include/net/inet_connection_sock.h
+++ b/include/net/inet_connection_sock.h
@@ -266,7 +266,7 @@ int inet_csk_bind_conflict(const struct sock *sk,
const struct inet_bind_bucket *tb, bool relax);
int inet_csk_get_port(struct sock *sk, unsigned short snum);
-struct dst_entry *inet_csk_route_req(struct sock *sk, struct flowi4 *fl4,
+struct dst_entry *inet_csk_route_req(const struct sock *sk, struct flowi4 *fl4,
const struct request_sock *req);
struct dst_entry *inet_csk_route_child_sock(struct sock *sk, struct sock *newsk,
const struct request_sock *req);