projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66eb554
)
udp6: constify __udp_v6_is_mcast_sock() socket argument
author
Eric Dumazet
<edumazet@google.com>
Thu, 16 Mar 2023 15:31:59 +0000
(15:31 +0000)
committer
David S. Miller
<davem@davemloft.net>
Fri, 17 Mar 2023 08:56:37 +0000
(08:56 +0000)
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>
net/ipv6/udp.c
patch
|
blob
|
history
diff --git
a/net/ipv6/udp.c
b/net/ipv6/udp.c
index ab4ae886235ac9557219c901c5041adfa8b026ef..d350e57c479299e732bd3595c1964acddde2d876 100644
(file)
--- a/
net/ipv6/udp.c
+++ b/
net/ipv6/udp.c
@@
-805,12
+805,12
@@
static int udpv6_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
return 0;
}
-static bool __udp_v6_is_mcast_sock(struct net *net, struct sock *sk,
+static bool __udp_v6_is_mcast_sock(struct net *net,
const
struct sock *sk,
__be16 loc_port, const struct in6_addr *loc_addr,
__be16 rmt_port, const struct in6_addr *rmt_addr,
int dif, int sdif, unsigned short hnum)
{
- struct inet_sock *inet = inet_sk(sk);
+
const
struct inet_sock *inet = inet_sk(sk);
if (!net_eq(sock_net(sk), net))
return false;