]> git.baikalelectronics.ru Git - kernel.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)
commit5d10baad1c4fc60e15fe857b09570b2a7905a4a8
tree7231c8fddcc6157dce7ecde4491c355fc284824c
parent45ca3eeb4756f7d943a13bcf697c2ea4ccd978da
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