route: Set orig_output when redirecting to lwt on locally generated traffic
authorThomas Graf <tgraf@suug.ch>
Wed, 30 Nov 2016 16:10:08 +0000 (17:10 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Dec 2016 15:51:49 +0000 (10:51 -0500)
commit11b3d9c5869bc96997cada33be6a56ebd179786b
treed7b4fcfbf1a879ff57e94229e17db7b17e12800f
parentee3d7c6e5b4d2615115aa857890923e3dcfa3852
route: Set orig_output when redirecting to lwt on locally generated traffic

orig_output for IPv4 was only set for dsts which hit an input route.
Set it consistently for locally generated traffic as well to allow
lwt to continue the dst_output() path as configured by the nexthop.

Fixes: 2536862311d ("lwt: Add support to redirect dst.input")
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c