Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

udp6: constify __udp_v6_is_mcast_sock() socket argument

This clarifies __udp_v6_is_mcast_sock() intent.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Eric Dumazet and committed by
David S. Miller
dc3731ba 66eb554c

+2 -2
+2 -2
net/ipv6/udp.c
··· 805 805 return 0; 806 806 } 807 807 808 - static bool __udp_v6_is_mcast_sock(struct net *net, struct sock *sk, 808 + static bool __udp_v6_is_mcast_sock(struct net *net, const struct sock *sk, 809 809 __be16 loc_port, const struct in6_addr *loc_addr, 810 810 __be16 rmt_port, const struct in6_addr *rmt_addr, 811 811 int dif, int sdif, unsigned short hnum) 812 812 { 813 - struct inet_sock *inet = inet_sk(sk); 813 + const struct inet_sock *inet = inet_sk(sk); 814 814 815 815 if (!net_eq(sock_net(sk), net)) 816 816 return false;