]> git.baikalelectronics.ru Git - kernel.git/commit
IPv6: Fixed support for blackhole and prohibit routes
authorKamala R <kamala@aristanetworks.com>
Mon, 2 Dec 2013 14:25:21 +0000 (19:55 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Dec 2013 22:14:27 +0000 (17:14 -0500)
commit246487bf14b7a0ede492e7669eb9ce9f213100cb
tree8a6e8767c79e5c2a9237ba094310ec2156a93201
parentabc96bf8ec02171f40ff3059d05f333059886dca
IPv6: Fixed support for blackhole and prohibit routes

The behaviour of blackhole and prohibit routes has been corrected by setting
the input and output pointers of the dst variable appropriately. For
blackhole routes, they are set to dst_discard and to ip6_pkt_discard and
ip6_pkt_discard_out respectively for prohibit routes.

ipv6: ip6_pkt_prohibit(_out) should not depend on
CONFIG_IPV6_MULTIPLE_TABLES

We need ip6_pkt_prohibit(_out) available without
CONFIG_IPV6_MULTIPLE_TABLES

Signed-off-by: Kamala R <kamala@aristanetworks.com>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c