]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "ipv6: ndisc: inherit metadata dst when creating ndisc requests"
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Fri, 27 Nov 2015 17:17:05 +0000 (18:17 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Dec 2015 20:07:59 +0000 (15:07 -0500)
commit44baa6c40b6c93296cef19a1660109758cddcbf8
treeb7c215879c5b0b71bb959d13d13b0e1db0fd0caf
parent9d44f16b3ad9b8ef00f225122b0cb3d20c4368f3
Revert "ipv6: ndisc: inherit metadata dst when creating ndisc requests"

This reverts commit 8b0a1e65b7c1cb5b6831e9a6927753b5d6faa8b7.

In IPv6, we cannot inherit the dst of the original dst. ndisc packets
are IPv6 packets and may take another route than the original packet.

This patch breaks the following scenario: a packet comes from eth0 and
is forwarded through vxlan1. The encapsulated packet triggers an NS
which cannot be sent because of the wrong route.

CC: Jiri Benc <jbenc@redhat.com>
CC: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ndisc.h
net/ipv6/addrconf.c
net/ipv6/ndisc.c
net/ipv6/route.c