vrf: check the original netdevice for generating redirect
authorStephen Suryaputra <ssuryaextr@gmail.com>
Fri, 1 Jun 2018 04:05:21 +0000 (00:05 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Jun 2018 14:16:45 +0000 (10:16 -0400)
commit2f17becfbea5e9a0529b51da7345783e96e69516
treeb13547b70ef8bf299cd075b8e335bebb16dcb342
parentcfed0a2c98d798bed970fd450eb4d7854705b3e1
vrf: check the original netdevice for generating redirect

Use the right device to determine if redirect should be sent especially
when using vrf. Same as well as when sending the redirect.

Signed-off-by: Stephen Suryaputra <ssuryaextr@gmail.com>
Acked-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_output.c
net/ipv6/ndisc.c