inet: constify inet_csk_route_child_sock() socket argument
authorEric Dumazet <edumazet@google.com>
Tue, 29 Sep 2015 14:42:43 +0000 (07:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Sep 2015 23:53:08 +0000 (16:53 -0700)
The socket points to the (shared) listener.

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

index 00c3ced6ee552b489da1b1cf6c5919996ff44bf9..187cef7e56d509fcd05c04e858fe610474f20fe7 100644 (file)
@@ -268,7 +268,8 @@ int inet_csk_get_port(struct sock *sk, unsigned short snum);
 
 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,
+struct dst_entry *inet_csk_route_child_sock(const struct sock *sk,
+                                           struct sock *newsk,
                                            const struct request_sock *req);
 
 static inline void inet_csk_reqsk_queue_add(struct sock *sk,
index ba2f90d90cb5ec5357da79db7d09ce9ac8f76fa1..694a5e8f4f9f13dbd13061b2f0ccbfda14089200 100644 (file)
@@ -439,7 +439,7 @@ no_route:
 }
 EXPORT_SYMBOL_GPL(inet_csk_route_req);
 
-struct dst_entry *inet_csk_route_child_sock(struct sock *sk,
+struct dst_entry *inet_csk_route_child_sock(const struct sock *sk,
                                            struct sock *newsk,
                                            const struct request_sock *req)
 {