summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpaul <paul>2003-08-12 06:00:30 +0000
committerpaul <paul>2003-08-12 06:00:30 +0000
commitbb8ff1e7fe7d25a03b9f81bfd23f10347423e860 (patch)
treec46cc3b8ffa7de0e9798f2f626202a9ba95fb898
parent071fcedb308f6b868b613453a0f78d12566f57a5 (diff)
2003-08-11 Yasuyuki Haga <yasuhaga@nifty.ne.jp>
* ospfd/ospf_zebra.c: (ospf_zebra_delete) Set ifindex if no nexthop supplied. log if no (ifindex || nexthop) supplied.
-rw-r--r--ospfd/ospf_zebra.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/ospfd/ospf_zebra.c b/ospfd/ospf_zebra.c
index 39525d57..ea90c845 100644
--- a/ospfd/ospf_zebra.c
+++ b/ospfd/ospf_zebra.c
@@ -429,6 +429,18 @@ ospf_zebra_delete (struct prefix_ipv4 *p, struct ospf_route *or)
nexthop = &path->nexthop;
api.nexthop = &nexthop;
}
+ else if (path->oi->ifp)
+ {
+ SET_FLAG (api.message, ZAPI_MESSAGE_NEXTHOP);
+ api.ifindex_num = 1;
+ api.ifindex = &path->oi->ifp->ifindex;
+ }
+ else if ( IS_DEBUG_OSPF(zebra,ZEBRA_REDISTRIBUTE) )
+ {
+ zlog_info("Zebra: no ifp %s %d",
+ inet_ntoa(p->prefix),
+ p->prefixlen);
+ }
zapi_ipv4_delete (zclient, p, &api);
@@ -438,6 +450,12 @@ ospf_zebra_delete (struct prefix_ipv4 *p, struct ospf_route *or)
inet_ntoa (p->prefix),
p->prefixlen, inet_ntoa (**api.nexthop));
}
+ if (IS_DEBUG_OSPF (zebra, ZEBRA_REDISTRIBUTE) && api.ifindex_num)
+ {
+ zlog_info ("Zebra: Route delete %s/%d ifindex %d",
+ inet_ntoa (p->prefix),
+ p->prefixlen, *api.ifindex);
+ }
}
}
}