mirror of
https://github.com/torvalds/linux.git
synced 2024-10-30 00:32:38 +00:00
ipv6: constify ip6_dst_lookup_{flow|tail}() sock arguments
ip6_dst_lookup_flow() and ip6_dst_lookup_tail() do not touch socket, lets add a const qualifier. This will permit the same change in inet6_csk_route_req() Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e5895bc600
commit
3aef934f4d
@ -849,7 +849,7 @@ static inline struct sk_buff *ip6_finish_skb(struct sock *sk)
|
|||||||
|
|
||||||
int ip6_dst_lookup(struct net *net, struct sock *sk, struct dst_entry **dst,
|
int ip6_dst_lookup(struct net *net, struct sock *sk, struct dst_entry **dst,
|
||||||
struct flowi6 *fl6);
|
struct flowi6 *fl6);
|
||||||
struct dst_entry *ip6_dst_lookup_flow(struct sock *sk, struct flowi6 *fl6,
|
struct dst_entry *ip6_dst_lookup_flow(const struct sock *sk, struct flowi6 *fl6,
|
||||||
const struct in6_addr *final_dst);
|
const struct in6_addr *final_dst);
|
||||||
struct dst_entry *ip6_sk_dst_lookup_flow(struct sock *sk, struct flowi6 *fl6,
|
struct dst_entry *ip6_sk_dst_lookup_flow(struct sock *sk, struct flowi6 *fl6,
|
||||||
const struct in6_addr *final_dst);
|
const struct in6_addr *final_dst);
|
||||||
|
@ -883,7 +883,7 @@ out:
|
|||||||
return dst;
|
return dst;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ip6_dst_lookup_tail(struct net *net, struct sock *sk,
|
static int ip6_dst_lookup_tail(struct net *net, const struct sock *sk,
|
||||||
struct dst_entry **dst, struct flowi6 *fl6)
|
struct dst_entry **dst, struct flowi6 *fl6)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_IPV6_OPTIMISTIC_DAD
|
#ifdef CONFIG_IPV6_OPTIMISTIC_DAD
|
||||||
@ -1014,7 +1014,7 @@ EXPORT_SYMBOL_GPL(ip6_dst_lookup);
|
|||||||
* It returns a valid dst pointer on success, or a pointer encoded
|
* It returns a valid dst pointer on success, or a pointer encoded
|
||||||
* error code.
|
* error code.
|
||||||
*/
|
*/
|
||||||
struct dst_entry *ip6_dst_lookup_flow(struct sock *sk, struct flowi6 *fl6,
|
struct dst_entry *ip6_dst_lookup_flow(const struct sock *sk, struct flowi6 *fl6,
|
||||||
const struct in6_addr *final_dst)
|
const struct in6_addr *final_dst)
|
||||||
{
|
{
|
||||||
struct dst_entry *dst = NULL;
|
struct dst_entry *dst = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user