ipv4: Cache ip_error() routes even when not forwarding.
authorDavid S. Miller <davem@davemloft.net>
Tue, 26 Jun 2012 23:27:09 +0000 (16:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Jun 2012 23:27:09 +0000 (16:27 -0700)
And account for the fact that, when we are not forwarding, we should
bump statistic counters rather than emit an ICMP response.

RP-filter rejected lookups are still not cached.

Since -EHOSTUNREACH and -ENETUNREACH can now no longer be seen in
ip_rcv_finish(), remove those checks.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_input.c
net/ipv4/route.c

Simple merge
Simple merge