updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / quagga-lisg / quagga-kernel-blackhole-add.diff
blobb89cfa534a4595ac2971ec5a7f915b746cc756cf
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
4 @@ -662,7 +662,7 @@
6 if (h->nlmsg_type != RTM_NEWROUTE)
7 return 0;
8 - if (rtm->rtm_type != RTN_UNICAST)
9 + if (rtm->rtm_type != RTN_UNICAST && rtm->rtm_type != RTN_BLACKHOLE && rtm->rtm_type != RTN_UNREACHABLE)
10 return 0;
12 table = rtm->rtm_table;
13 @@ -792,7 +792,7 @@
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)
20 return 0;
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
25 @@ -1564,6 +1564,9 @@
26 else
27 nexthop_ipv4_add (rib, gate, src);
30 + else if (!ifindex)
31 + nexthop_blackhole_add (rib);
32 else
33 nexthop_ifindex_add (rib, ifindex);