route: Mark unused route cache flags as such.
Also removes an obsolete check for the unused flag RTCF_MASQ. Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
7557af2515
commit
51b77cae0d
@@ -1792,7 +1792,7 @@ static int __mkroute_input(struct sk_buff *skb,
|
||||
if (err)
|
||||
flags |= RTCF_DIRECTSRC;
|
||||
|
||||
if (out_dev == in_dev && err && !(flags & RTCF_MASQ) &&
|
||||
if (out_dev == in_dev && err &&
|
||||
(IN_DEV_SHARED_MEDIA(out_dev) ||
|
||||
inet_addr_onlink(out_dev, saddr, FIB_RES_GW(*res))))
|
||||
flags |= RTCF_DOREDIRECT;
|
||||
|
Reference in New Issue
Block a user