]> git.proxmox.com Git - mirror_frr.git/blobdiff - ospfd/ospf_ase.c
*: conform with COMMUNITY.md formatting rules, via 'make indent'
[mirror_frr.git] / ospfd / ospf_ase.c
index d2af974833f490c21229943c937b79f9bde775ba..0c2ddc96474b3f8b92d15fea5a3a2ea198be38a2 100644 (file)
@@ -610,9 +610,8 @@ static int ospf_ase_compare_tables(struct ospf *ospf,
                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);
                }
@@ -623,9 +622,8 @@ static int ospf_ase_compare_tables(struct ospf *ospf,
                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;
 }
@@ -648,7 +646,7 @@ static int ospf_ase_calculate_timer(struct thread *t)
                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  */
@@ -660,12 +658,12 @@ static int ospf_ase_calculate_timer(struct thread *t)
                                                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
@@ -681,9 +679,12 @@ static int ospf_ase_calculate_timer(struct thread *t)
                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;
 }