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)
commit251da4130115b29403a57096fa0988249f31fc55
tree8bc64a855cc330048989d30c0082c838e70a9d29
parentdf67e6c9a6ca59ca96bdd46a500ae9dd596f427c
ipv4: Cache ip_error() routes even when not forwarding.

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