summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDuan Jiong <djduanjiong@gmail.com>2012-12-14 02:59:59 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-11 09:18:52 -0800
commit29a21388c86ffa0d18018a7ddf49aa129588a339 (patch)
treef875e7c254f079f3d303ecdec7c4278a574462ac /include
parent9ce4b845ed059b9104f3bb204db6306e52b25d1b (diff)
ipv6: Change skb->data before using icmpv6_notify() to propagate redirect
[ Upstream commit 093d04d42fa094f6740bb188f0ad0c215ff61e2c ] In function ndisc_redirect_rcv(), the skb->data points to the transport header, but function icmpv6_notify() need the skb->data points to the inner IP packet. So before using icmpv6_notify() to propagate redirect, change skb->data to point the inner IP packet that triggered the sending of the Redirect, and introduce struct rd_msg to make it easy. Signed-off-by: Duan Jiong <djduanjiong@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/net/ndisc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/net/ndisc.h b/include/net/ndisc.h
index 980d263765cf..6b305d7a5aa4 100644
--- a/include/net/ndisc.h
+++ b/include/net/ndisc.h
@@ -78,6 +78,13 @@ struct ra_msg {
__be32 retrans_timer;
};
+struct rd_msg {
+ struct icmp6hdr icmph;
+ struct in6_addr target;
+ struct in6_addr dest;
+ __u8 opt[0];
+};
+
struct nd_opt_hdr {
__u8 nd_opt_type;
__u8 nd_opt_len;