summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBeniamino Galvani <b.galvani@gmail.com>2023-09-24 17:30:14 +0200
committerPaolo Abeni <pabeni@redhat.com>2023-10-03 11:48:19 +0200
commitf25e621f5d4c423fa7217afbddd427007b0e0ec0 (patch)
tree0be16c945aaf2ca669ea4ef65da7dcf112341052 /include
parent32030345297e2a5c94afabb1427862299931b654 (diff)
downloadlwn-f25e621f5d4c423fa7217afbddd427007b0e0ec0.tar.gz
lwn-f25e621f5d4c423fa7217afbddd427007b0e0ec0.zip
ipv6: mark address parameters of udp_tunnel6_xmit_skb() as const
The function doesn't modify the addresses passed as input, mark them as 'const' to make that clear. Signed-off-by: Beniamino Galvani <b.galvani@gmail.com> Reviewed-by: Guillaume Nault <gnault@redhat.com> Link: https://lore.kernel.org/r/20230924153014.786962-1-b.galvani@gmail.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/net/udp_tunnel.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/net/udp_tunnel.h b/include/net/udp_tunnel.h
index 29251c3519cf..21ba0a25f936 100644
--- a/include/net/udp_tunnel.h
+++ b/include/net/udp_tunnel.h
@@ -154,8 +154,9 @@ void udp_tunnel_xmit_skb(struct rtable *rt, struct sock *sk, struct sk_buff *skb
int udp_tunnel6_xmit_skb(struct dst_entry *dst, struct sock *sk,
struct sk_buff *skb,
- struct net_device *dev, struct in6_addr *saddr,
- struct in6_addr *daddr,
+ struct net_device *dev,
+ const struct in6_addr *saddr,
+ const struct in6_addr *daddr,
__u8 prio, __u8 ttl, __be32 label,
__be16 src_port, __be16 dst_port, bool nocheck);