Commit e0adef0f7456d5d3a3bfe8ea61c7dddf146b40e1
Committed by
David S. Miller
1 parent
e81da0e113
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
ipv4: fix forwarding for strict source routes
After the change "Adjust semantics of rt->rt_gateway" (commit f8126f1d51) rt_gateway can be 0 but ip_forward() compares it directly with nexthop. What we want here is to check if traffic is to directly connected nexthop and to fail if using gateway. Signed-off-by: Julian Anastasov <ja@ssi.bg> Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
net/ipv4/ip_forward.c