Home
last modified time | relevance | path

Searched hist:ef2c7d7b59708d54213c7556a82d14de9a7e4475 (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/include/net/
H A Dip6_fib.hdiff ef2c7d7b59708d54213c7556a82d14de9a7e4475 Tue Sep 04 21:12:42 CDT 2012 Nicolas Dichtel <nicolas.dichtel@6wind.com> ipv6: fix handling of blackhole and prohibit routes

When adding a blackhole or a prohibit route, they were handling like classic
routes. Moreover, it was only possible to add this kind of routes by specifying
an interface.

Bug already reported here:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=498498

Before the patch:
$ ip route add blackhole 2001::1/128
RTNETLINK answers: No such device
$ ip route add blackhole 2001::1/128 dev eth0
$ ip -6 route | grep 2001
2001::1 dev eth0 metric 1024

After:
$ ip route add blackhole 2001::1/128
$ ip -6 route | grep 2001
blackhole 2001::1 dev lo metric 1024 error -22

v2: wrong patch
v3: add a field fc_type in struct fib6_config to store RTN_* type

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
/openbmc/linux/net/ipv6/
H A Droute.cdiff ef2c7d7b59708d54213c7556a82d14de9a7e4475 Tue Sep 04 21:12:42 CDT 2012 Nicolas Dichtel <nicolas.dichtel@6wind.com> ipv6: fix handling of blackhole and prohibit routes

When adding a blackhole or a prohibit route, they were handling like classic
routes. Moreover, it was only possible to add this kind of routes by specifying
an interface.

Bug already reported here:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=498498

Before the patch:
$ ip route add blackhole 2001::1/128
RTNETLINK answers: No such device
$ ip route add blackhole 2001::1/128 dev eth0
$ ip -6 route | grep 2001
2001::1 dev eth0 metric 1024

After:
$ ip route add blackhole 2001::1/128
$ ip -6 route | grep 2001
blackhole 2001::1 dev lo metric 1024 error -22

v2: wrong patch
v3: add a field fc_type in struct fib6_config to store RTN_* type

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>