Commit 251da41
committed
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>1 parent df67e6c commit 251da41
2 files changed
Lines changed: 20 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
| 345 | + | |
352 | 346 | | |
353 | 347 | | |
354 | 348 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1609 | 1609 | | |
1610 | 1610 | | |
1611 | 1611 | | |
| 1612 | + | |
1612 | 1613 | | |
1613 | 1614 | | |
1614 | 1615 | | |
| 1616 | + | |
1615 | 1617 | | |
1616 | 1618 | | |
1617 | 1619 | | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
1618 | 1634 | | |
1619 | 1635 | | |
1620 | 1636 | | |
| |||
1624 | 1640 | | |
1625 | 1641 | | |
1626 | 1642 | | |
1627 | | - | |
1628 | | - | |
| 1643 | + | |
1629 | 1644 | | |
1630 | 1645 | | |
1631 | 1646 | | |
| |||
2255 | 2270 | | |
2256 | 2271 | | |
2257 | 2272 | | |
2258 | | - | |
2259 | | - | |
2260 | | - | |
| 2273 | + | |
2261 | 2274 | | |
2262 | | - | |
2263 | 2275 | | |
2264 | 2276 | | |
2265 | 2277 | | |
| |||
2279 | 2291 | | |
2280 | 2292 | | |
2281 | 2293 | | |
2282 | | - | |
| 2294 | + | |
2283 | 2295 | | |
2284 | 2296 | | |
2285 | 2297 | | |
| |||
2367 | 2379 | | |
2368 | 2380 | | |
2369 | 2381 | | |
2370 | | - | |
2371 | | - | |
2372 | | - | |
2373 | | - | |
2374 | 2382 | | |
2375 | 2383 | | |
2376 | 2384 | | |
| |||
0 commit comments