From 42a1488105379be37a5f4c39f7a99d1c53e092e3 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Wed, 26 Aug 2009 22:34:39 +0200 Subject: zebra: accept "connected" routes from protocols other than Connected OLSR injects a /32 route for each connected router. treat these routes as connected for route nexthop/interface resolution. --- zebra/zebra_rib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'zebra/zebra_rib.c') diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index 8228350f..7374f73d 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -366,7 +366,8 @@ nexthop_active_ipv4 (struct rib *rib, struct nexthop *nexthop, int set, } else { - if (match->type == ZEBRA_ROUTE_CONNECT) + if (match->type == ZEBRA_ROUTE_CONNECT + || (match->nexthop && match->nexthop->type == NEXTHOP_TYPE_IFINDEX)) { /* Directly point connected route. */ newhop = match->nexthop; -- cgit v1.2.3