David S. Miller bb3c36863e ipv6: Check dest prefix length on original route not copied one in rt6_alloc_cow().
After commit 8e2ec639173f325977818c45011ee176ef2b11f6 ("ipv6: don't
use inetpeer to store metrics for routes.") the test in rt6_alloc_cow()
for setting the ANYCAST flag is now wrong.

'rt' will always now have a plen of 128, because it is set explicitly
to 128 by ip6_rt_copy.

So to restore the semantics of the test, check the destination prefix
length of 'ort'.

Signed-off-by: David S. Miller <davem@davemloft.net>
2011-12-13 17:35:06 -05:00
..
2011-11-12 18:13:32 -05:00
2011-10-13 16:05:07 -04:00
2011-10-19 19:26:16 -04:00
2010-05-11 14:40:55 +02:00
2011-04-22 11:04:14 -07:00
2011-11-23 03:51:54 -05:00
2010-10-25 13:09:45 -07:00
2011-12-01 14:12:55 -05:00