summaryrefslogtreecommitdiff
path: root/net/ipv6
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2023-03-16 18:32:00 +0300
committerDavid S. Miller <davem@davemloft.net>2023-03-17 11:56:37 +0300
commitdb6af4fdb150b45e1ba6b295ccfd3df482e022d2 (patch)
treef416516c52a22529e60b103f9c2de8d3fc30b973 /net/ipv6
parentdc3731bad8e133ca1893ae414fdebdf85a333495 (diff)
downloadlinux-db6af4fdb150b45e1ba6b295ccfd3df482e022d2.tar.xz
ipv6: raw: constify raw_v6_match() socket argument
This clarifies raw_v6_match() 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/ipv6')
-rw-r--r--net/ipv6/raw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c
index bac9ba747bde..6ac2f2690c44 100644
--- a/net/ipv6/raw.c
+++ b/net/ipv6/raw.c
@@ -64,7 +64,7 @@
struct raw_hashinfo raw_v6_hashinfo;
EXPORT_SYMBOL_GPL(raw_v6_hashinfo);
-bool raw_v6_match(struct net *net, struct sock *sk, unsigned short num,
+bool raw_v6_match(struct net *net, const struct sock *sk, unsigned short num,
const struct in6_addr *loc_addr,
const struct in6_addr *rmt_addr, int dif, int sdif)
{