diff options
author | Eric Dumazet <edumazet@google.com> | 2023-03-16 16:31:57 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-03-17 09:56:37 +0100 |
commit | a0a989d3007538cd7dae9431d8ac47850ced3100 (patch) | |
tree | fe1ec8291c43770dac914a869cd15858fd555d74 /net/ipv4/udp.c | |
parent | ipv4: constify ip_mc_sf_allow() socket argument (diff) | |
download | linux-a0a989d3007538cd7dae9431d8ac47850ced3100.tar.xz linux-a0a989d3007538cd7dae9431d8ac47850ced3100.zip |
udp: constify __udp_is_mcast_sock() socket argument
This clarifies __udp_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>
Diffstat (limited to 'net/ipv4/udp.c')
-rw-r--r-- | net/ipv4/udp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index dc8feb54d835..aa32afd871ee 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c @@ -578,12 +578,12 @@ struct sock *udp4_lib_lookup(struct net *net, __be32 saddr, __be16 sport, EXPORT_SYMBOL_GPL(udp4_lib_lookup); #endif -static inline bool __udp_is_mcast_sock(struct net *net, struct sock *sk, +static inline bool __udp_is_mcast_sock(struct net *net, const struct sock *sk, __be16 loc_port, __be32 loc_addr, __be16 rmt_port, __be32 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) || udp_sk(sk)->udp_port_hash != hnum || |