summaryrefslogtreecommitdiff
path: root/ospfd/ospf_zebra.c
diff options
context:
space:
mode:
authorhasso <hasso>2004-04-23 08:51:10 +0000
committerhasso <hasso>2004-04-23 08:51:10 +0000
commita0a397615cb7da4b23a71cef267064380f78dca4 (patch)
treedfe91b59829952f5883239a6b81a39f996e54819 /ospfd/ospf_zebra.c
parent31fcdd3fef4df0496963f01416d8f4e41194569f (diff)
Don't ignore reject/bh routes. Discussed with Paul in IRC.
Diffstat (limited to 'ospfd/ospf_zebra.c')
-rw-r--r--ospfd/ospf_zebra.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/ospfd/ospf_zebra.c b/ospfd/ospf_zebra.c
index 300105f4..ab9844fc 100644
--- a/ospfd/ospf_zebra.c
+++ b/ospfd/ospf_zebra.c
@@ -821,13 +821,15 @@ ospf_zebra_read_ipv4 (int command, struct zclient *zclient,
if (command == ZEBRA_IPV4_ROUTE_ADD)
{
/* XXX|HACK|TODO|FIXME:
- * ignore reject/blackhole routes
- * need a better generalised solution for these types
- * really.
+ * Maybe we should ignore reject/blackhole routes? Testing shows that
+ * there is no problems though and this is only way to "summarize"
+ * routes in ASBR at the moment. Maybe we need just a better generalised
+ * solution for these types?
+ *
+ * if ( CHECK_FLAG (api.flags, ZEBRA_FLAG_BLACKHOLE)
+ * || CHECK_FLAG (api.flags, ZEBRA_FLAG_REJECT))
+ * return 0;
*/
- if ( CHECK_FLAG (api.flags, ZEBRA_FLAG_BLACKHOLE)
- || CHECK_FLAG (api.flags, ZEBRA_FLAG_REJECT))
- return 0;
ei = ospf_external_info_add (api.type, p, ifindex, nexthop);