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)
commit7150aede5dd241539686e17d9592f5ebd28a2cda
tree8a6e8767c79e5c2a9237ba094310ec2156a93201
parent57ec0afe293834f8ca9499214ed74748d89eaa44
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