summaryrefslogtreecommitdiffstats
path: root/include/linux/icmpv6.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2016-06-18 21:52:02 -0700
committerDavid S. Miller <davem@davemloft.net>2016-06-18 22:11:38 -0700
commitb1cadc1a0949c82ff7fcb15603e3caf2d32ff9f6 (patch)
treefb574ee11be97ef84b0c29ff46c3aaa992821ba9 /include/linux/icmpv6.h
parentadc01582e36fc228f6f1c82188f7501eb4c6154f (diff)
downloadlinux-b1cadc1a0949c82ff7fcb15603e3caf2d32ff9f6.tar.gz
linux-b1cadc1a0949c82ff7fcb15603e3caf2d32ff9f6.tar.bz2
linux-b1cadc1a0949c82ff7fcb15603e3caf2d32ff9f6.zip
ipv6: icmp: add a force_saddr param to icmp6_send()
SIT or GRE tunnels might want to translate an IPV4 address into a v4mapped one when translating ICMP to ICMPv6. This patch adds the parameter to icmp6_send() but does not change icmpv6_send() signature. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/icmpv6.h')
-rw-r--r--include/linux/icmpv6.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/icmpv6.h b/include/linux/icmpv6.h
index 630f45335c73..432611a297fb 100644
--- a/include/linux/icmpv6.h
+++ b/include/linux/icmpv6.h
@@ -14,7 +14,8 @@ static inline struct icmp6hdr *icmp6_hdr(const struct sk_buff *skb)
#if IS_ENABLED(CONFIG_IPV6)
extern void icmpv6_send(struct sk_buff *skb, u8 type, u8 code, __u32 info);
-typedef void ip6_icmp_send_t(struct sk_buff *skb, u8 type, u8 code, __u32 info);
+typedef void ip6_icmp_send_t(struct sk_buff *skb, u8 type, u8 code, __u32 info,
+ const struct in6_addr *force_saddr);
extern int inet6_register_icmp_sender(ip6_icmp_send_t *fn);
extern int inet6_unregister_icmp_sender(ip6_icmp_send_t *fn);