if ((or = rn->info)) {
if (!(new_rn = route_node_lookup(new_external_route,
&rn->p)))
- ospf_zebra_delete(ospf,
- (struct prefix_ipv4 *)&rn->p,
- or);
+ ospf_zebra_delete(
+ ospf, (struct prefix_ipv4 *)&rn->p, or);
else
route_unlock_node(new_rn);
}
if ((or = rn->info) != NULL)
if (!ospf_ase_route_match_same(old_external_route,
&rn->p, or))
- ospf_zebra_add(ospf,
- (struct prefix_ipv4 *)&rn->p,
- or);
+ ospf_zebra_add(
+ ospf, (struct prefix_ipv4 *)&rn->p, or);
return 0;
}
monotime(&start_time);
/* Calculate external route for each AS-external-LSA */
- LSDB_LOOP(EXTERNAL_LSDB(ospf), rn, lsa)
+ LSDB_LOOP (EXTERNAL_LSDB(ospf), rn, lsa)
ospf_ase_calculate_route(ospf, lsa);
/* This version simple adds to the table all NSSA areas */
inet_ntoa(area->area_id));
if (area->external_routing == OSPF_AREA_NSSA)
- LSDB_LOOP(NSSA_LSDB(area), rn, lsa)
+ LSDB_LOOP (NSSA_LSDB(area), rn, lsa)
ospf_ase_calculate_route(ospf,
lsa);
}
/* kevinm: And add the NSSA routes in ospf_top */
- LSDB_LOOP(NSSA_LSDB(ospf), rn, lsa)
+ LSDB_LOOP (NSSA_LSDB(ospf), rn, lsa)
ospf_ase_calculate_route(ospf, lsa);
/* Compare old and new external routing table and install the
monotime(&stop_time);
if (IS_DEBUG_OSPF_EVENT)
- zlog_info("SPF Processing Time(usecs): External Routes: %lld\n",
- (stop_time.tv_sec - start_time.tv_sec) * 1000000LL
- + (stop_time.tv_usec - start_time.tv_usec));
+ zlog_info(
+ "SPF Processing Time(usecs): External Routes: %lld\n",
+ (stop_time.tv_sec - start_time.tv_sec)
+ * 1000000LL
+ + (stop_time.tv_usec
+ - start_time.tv_usec));
}
return 0;
}