]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ipv6: Change skb->data before using icmpv6_notify() to propagate redirect
authorDuan Jiong <djduanjiong@gmail.com>
Fri, 14 Dec 2012 02:59:59 +0000 (02:59 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Jan 2013 17:18:52 +0000 (09:18 -0800)
commit29a21388c86ffa0d18018a7ddf49aa129588a339
treef875e7c254f079f3d303ecdec7c4278a574462ac
parent9ce4b845ed059b9104f3bb204db6306e52b25d1b
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>
include/net/ndisc.h
net/ipv6/ndisc.c