diff options
author | Duan Jiong <djduanjiong@gmail.com> | 2012-12-14 02:59:59 +0000 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2013-03-22 23:08:20 -0400 |
commit | 18e624b1b17b690fa224d6dffdc01e2fe74d93d0 (patch) | |
tree | b8d4de0ff619f7754e5a550ba09de8f8220bdc2c /include/net | |
parent | 16e140d36e795e4ca637a1f9c2c1bb9845193435 (diff) | |
download | linux-rt-18e624b1b17b690fa224d6dffdc01e2fe74d93d0.tar.gz |
ipv6: Change skb->data before using icmpv6_notify() to propagate redirect
[ Upstream commit 7801a085efab5f1d7cc54fa1f80b0c69b457db68 ]
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>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/ndisc.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/net/ndisc.h b/include/net/ndisc.h index 96a3b5c03e37..826a541b2b61 100644 --- a/include/net/ndisc.h +++ b/include/net/ndisc.h @@ -77,6 +77,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; |