From: Nicolas Dichtel Date: Thu, 6 Sep 2012 05:53:35 +0000 (+0000) Subject: ipv6: fix handling of throw routes X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~47^2~204 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4949ab269a20e9af9a0c40729bac56e8f8a43a2;p=pandora-kernel.git ipv6: fix handling of throw routes It's the same problem that previous fix about blackhole and prohibit routes. When adding a throw route, it was handled like a classic route. Moreover, it was only possible to add this kind of routes by specifying an interface. Before the patch: $ ip route add throw 2001::2/128 RTNETLINK answers: No such device $ ip route add throw 2001::2/128 dev eth0 $ ip -6 route | grep 2001::2 2001::2 dev eth0 metric 1024 After: $ ip route add throw 2001::2/128 $ ip -6 route | grep 2001::2 throw 2001::2 dev lo metric 1024 error -11 Reported-by: Markus Stenberg Signed-off-by: Nicolas Dichtel Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed