David S. Miller b43faac690 ipv6: If neigh lookup fails during icmp6 dst allocation, propagate error.
Don't just succeed with a route that has a NULL neighbour attached.
This follows the behavior of addrconf_dst_alloc().

Allowing this kind of route to end up with a NULL neigh attached will
result in packet drops on output until the route is somehow
invalidated, since nothing will meanwhile try to lookup the neigh
again.

A statistic is bumped for the case where we see a neigh-less route on
output, but the resulting packet drop is otherwise silent in nature,
and frankly it's a hard error for this to happen and ipv6 should do
what ipv4 does which is say something in the kernel logs.

Signed-off-by: David S. Miller <davem@davemloft.net>
2011-12-13 16:51:51 -05:00
..
2011-12-08 19:58:30 -05:00
2011-12-11 18:25:16 -05:00
2011-12-06 17:21:47 -05:00
2011-12-11 18:25:16 -05:00
2011-03-17 11:59:32 +11:00
2011-10-13 16:05:07 -04:00
2011-12-11 18:25:16 -05:00
2011-11-26 15:57:36 -05:00
2011-09-16 19:20:20 -04:00
2011-12-11 18:25:16 -05:00
2011-11-29 00:23:13 -05:00
2011-11-14 00:10:50 -05:00
2011-12-11 18:25:16 -05:00
2011-12-11 18:25:16 -05:00
2011-12-11 18:25:16 -05:00
2010-10-15 15:53:27 +02:00