Thread (9 messages) flat view 9 messages, 6 authors, 2013-01-24

Re: [PATCH net-next] ipv6: fix handling of throw routes

From: Nicolas Dichtel <hidden>
Date: 2012-09-10 07:15:53

Le 07/09/2012 20:18, David Miller a écrit :
From: Nicolas Dichtel <redacted>
Date: Thu,  6 Sep 2012 11:53:35 -0400
quoted
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 <redacted>
Signed-off-by: Nicolas Dichtel <redacted>
Applied, thanks.

See how easy this was to implement via ->rtm_type? :-)
Definitely!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help