]> 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)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Dec 2012 18:14:07 +0000 (13:14 -0500)
commit093d04d42fa094f6740bb188f0ad0c215ff61e2c
tree7231c8fddcc6157dce7ecde4491c355fc284824c
parent1e9f954516ee03251e0ac2e98cad2e4be6ce9958
ipv6: Change skb->data before using icmpv6_notify() to propagate redirect

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>
include/net/ndisc.h
net/ipv6/ndisc.c