1 diff -r 9fa71be4f3f7 zebra/rt_netlink.c
2 --- a/zebra/rt_netlink.c Thu Oct 13 12:03:01 2011 +0300
3 +++ b/zebra/rt_netlink.c Thu Oct 13 12:07:33 2011 +0300
6 if (h->nlmsg_type != RTM_NEWROUTE)
8 - if (rtm->rtm_type != RTN_UNICAST)
9 + if (rtm->rtm_type != RTN_UNICAST && rtm->rtm_type != RTN_BLACKHOLE && rtm->rtm_type != RTN_UNREACHABLE)
12 table = rtm->rtm_table;
14 rtm->rtm_type == RTN_UNICAST ? "unicast" : "multicast",
15 lookup (rtproto_str, rtm->rtm_protocol));
17 - if (rtm->rtm_type != RTN_UNICAST)
18 + if (rtm->rtm_type != RTN_UNICAST && rtm->rtm_type != RTN_BLACKHOLE && rtm->rtm_type != RTN_UNREACHABLE)
22 diff -r 9fa71be4f3f7 zebra/zebra_rib.c
23 --- a/zebra/zebra_rib.c Thu Oct 13 12:03:01 2011 +0300
24 +++ b/zebra/zebra_rib.c Thu Oct 13 12:07:33 2011 +0300
27 nexthop_ipv4_add (rib, gate, src);
31 + nexthop_blackhole_add (rib);
33 nexthop_ifindex_add (rib, ifindex);