https://github.com/torvalds/linux
Revision bb3c36863e8001fc21a88bebfdead4da4c23e848 authored by David S. Miller on 13 December 2011, 22:35:06 UTC, committed by David S. Miller on 13 December 2011, 22:35:06 UTC
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>
1 parent 3f1e6d3
History
Tip revision: bb3c36863e8001fc21a88bebfdead4da4c23e848 authored by David S. Miller on 13 December 2011, 22:35:06 UTC
ipv6: Check dest prefix length on original route not copied one in rt6_alloc_cow().
Tip revision: bb3c368
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1014 bytes
.mailmap -rw-r--r-- 4.2 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 92.6 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 201.9 KB
Makefile -rw-r--r-- 52.2 KB
README -rw-r--r-- 17.0 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top