Skip to content

Commit 30d50c6

Browse files
Eric Dumazetdavem330
authored andcommitted
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: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 3aef934 commit 30d50c6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/net/inet6_connection_sock.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ struct sockaddr;
2525
int inet6_csk_bind_conflict(const struct sock *sk,
2626
const struct inet_bind_bucket *tb, bool relax);
2727

28-
struct dst_entry *inet6_csk_route_req(struct sock *sk, struct flowi6 *fl6,
28+
struct dst_entry *inet6_csk_route_req(const struct sock *sk, struct flowi6 *fl6,
2929
const struct request_sock *req);
3030

3131
struct request_sock *inet6_csk_search_req(struct sock *sk,

net/ipv6/inet6_connection_sock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ int inet6_csk_bind_conflict(const struct sock *sk,
6565
}
6666
EXPORT_SYMBOL_GPL(inet6_csk_bind_conflict);
6767

68-
struct dst_entry *inet6_csk_route_req(struct sock *sk,
68+
struct dst_entry *inet6_csk_route_req(const struct sock *sk,
6969
struct flowi6 *fl6,
7070
const struct request_sock *req)
7171
{

0 commit comments

Comments
 (0)