aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/addrconf.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2023-03-16 15:31:58 +0000
committerDavid S. Miller <davem@davemloft.net>2023-03-17 08:56:37 +0000
commit66eb554c6449cef8c1e1b814f74d13f264582591 (patch)
tree8aa17160dd9a803a564c534e984aef0fd320b48e /include/net/addrconf.h
parentudp: constify __udp_is_mcast_sock() socket argument (diff)
downloadlinux-66eb554c6449cef8c1e1b814f74d13f264582591.tar.xz
linux-66eb554c6449cef8c1e1b814f74d13f264582591.zip
ipv6: constify inet6_mc_check()
inet6_mc_check() is essentially a read-only function. 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 'include/net/addrconf.h')
-rw-r--r--include/net/addrconf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/addrconf.h b/include/net/addrconf.h
index c04f359655b8..82da55101b5a 100644
--- a/include/net/addrconf.h
+++ b/include/net/addrconf.h
@@ -223,7 +223,7 @@ int ipv6_sock_mc_drop(struct sock *sk, int ifindex,
const struct in6_addr *addr);
void __ipv6_sock_mc_close(struct sock *sk);
void ipv6_sock_mc_close(struct sock *sk);
-bool inet6_mc_check(struct sock *sk, const struct in6_addr *mc_addr,
+bool inet6_mc_check(const struct sock *sk, const struct in6_addr *mc_addr,
const struct in6_addr *src_addr);
int ipv6_dev_mc_inc(struct net_device *dev, const struct in6_addr *addr);