]> git.karo-electronics.de Git - linux-beck.git/commitdiff
inet: constify inet_csk_route_req() socket argument
authorEric Dumazet <edumazet@google.com>
Fri, 25 Sep 2015 14:39:11 +0000 (07:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Sep 2015 20:00:37 +0000 (13:00 -0700)
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>
include/net/inet_connection_sock.h
net/ipv4/inet_connection_sock.c

index 0320bbb7d7b5a1987e7b85f6842cf9fa145d91c5..00c3ced6ee552b489da1b1cf6c5919996ff44bf9 100644 (file)
@@ -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);
index 134957159c27eb9180e08b73360fe891574b4742..ad087c14f0207d640a4e0041ab36b7f70de4c108 100644 (file)
@@ -408,7 +408,7 @@ void inet_csk_reset_keepalive_timer(struct sock *sk, unsigned long len)
 }
 EXPORT_SYMBOL(inet_csk_reset_keepalive_timer);
 
-struct dst_entry *inet_csk_route_req(struct sock *sk,
+struct dst_entry *inet_csk_route_req(const struct sock *sk,
                                     struct flowi4 *fl4,
                                     const struct request_sock *req)
 {