summaryrefslogtreecommitdiff
path: root/include/net/raw.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2023-03-16 15:32:01 +0000
committerDavid S. Miller <davem@davemloft.net>2023-03-17 08:56:37 +0000
commit0a8c2568209ee0c3392593c7c5c7fe41c625a383 (patch)
treea4717e5fbd8cd4a1d601e3ae847ec80e10beb992 /include/net/raw.h
parentdb6af4fdb150b45e1ba6b295ccfd3df482e022d2 (diff)
ipv4: raw: constify raw_v4_match() socket argument
This clarifies raw_v4_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 'include/net/raw.h')
-rw-r--r--include/net/raw.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/raw.h b/include/net/raw.h
index 2c004c20ed99..7ad15830cf38 100644
--- a/include/net/raw.h
+++ b/include/net/raw.h
@@ -22,7 +22,7 @@
extern struct proto raw_prot;
extern struct raw_hashinfo raw_v4_hashinfo;
-bool raw_v4_match(struct net *net, struct sock *sk, unsigned short num,
+bool raw_v4_match(struct net *net, const struct sock *sk, unsigned short num,
__be32 raddr, __be32 laddr, int dif, int sdif);
int raw_abort(struct sock *sk, int err);