]> git.puffer.fish Git - mirror/frr.git/commitdiff
[ospfd] CID #28, remove another ospf_lookup call - ospf_redistribute_withdraw
authorPaul Jakma <paul.jakma@sun.com>
Fri, 12 May 2006 23:02:46 +0000 (23:02 +0000)
committerPaul Jakma <paul.jakma@sun.com>
Fri, 12 May 2006 23:02:46 +0000 (23:02 +0000)
2006-05-12 Paul Jakma <paul.jakma@sun.com>

* ospf_asbr.c: (ospf_redistribute_withdraw) remove ospf_lookup
  call by taking the struct ospf * as argument, which the
  caller has, fixing CID #28.
* ospf_asbr.h: (ospf_redistribute_withdraw) update declaration
* ospf_zebra.c: (ospf_redistribute_unset) update call to
  ospf_redistribute_withdraw to match.

ospfd/ChangeLog
ospfd/ospf_asbr.c
ospfd/ospf_asbr.h
ospfd/ospf_zebra.c

index 8cb115c669592ec7324433b5ab7e7f608f63283a..72e363e9a3382e0283ccf147e5b47dfc3ace5aa2 100644 (file)
@@ -7,6 +7,12 @@
          (struct lsa_action) remove unused member.
        * ospf_interface.c: (ospf_if_exists) Fix missing NULL return
          check on ospf_lookup, CID #27.
+       * ospf_asbr.c: (ospf_redistribute_withdraw) remove ospf_lookup
+         call by taking the struct ospf * as argument, which the
+         caller has, fixing CID #28.
+       * ospf_asbr.h: (ospf_redistribute_withdraw) update declaration
+       * ospf_zebra.c: (ospf_redistribute_unset) update call to
+         ospf_redistribute_withdraw to match.
 
 2006-05-11 Paul Jakma <paul.jakma@sun.com>
 
index 426fac499c75512fc60faa062ca8b91afa838258..a4826237872237f07c6bb8f9543fad95c88fb84a 100644 (file)
@@ -270,14 +270,11 @@ ospf_asbr_status_update (struct ospf *ospf, u_char status)
 }
 
 void
-ospf_redistribute_withdraw (u_char type)
+ospf_redistribute_withdraw (struct ospf *ospf, u_char type)
 {
-  struct ospf *ospf;
   struct route_node *rn;
   struct external_info *ei;
 
-  ospf = ospf_lookup ();
-
   /* Delete external info for specified type. */
   if (EXTERNAL_INFO (type))
     for (rn = route_top (EXTERNAL_INFO (type)); rn; rn = route_next (rn))
index fdcfbd920c18e814d734fc22ffebc9dd4bd8ec06..724acf481779f0204a6e7180a5f8e06aa54b6484 100644 (file)
@@ -70,7 +70,7 @@ extern struct ospf_route *ospf_external_route_lookup (struct ospf *,
                                                struct prefix_ipv4 *);
 extern void ospf_asbr_status_update (struct ospf *, u_char);
 
-extern void ospf_redistribute_withdraw (u_char);
+extern void ospf_redistribute_withdraw (struct ospf *, u_char);
 extern void ospf_asbr_check (void);
 extern void ospf_schedule_asbr_check (void);
 extern void ospf_asbr_route_install_lsa (struct ospf_lsa *);
index 11c4d99b0ab329b60c70137c9d60c3370c44f4ca..5a722e0502cd3e8a97e753d2834d5acefdace7a5 100644 (file)
@@ -565,7 +565,7 @@ ospf_redistribute_unset (struct ospf *ospf, int type)
   ospf->dmetric[type].value = -1;
 
   /* Remove the routes from OSPF table. */
-  ospf_redistribute_withdraw (type);
+  ospf_redistribute_withdraw (ospf, type);
 
   ospf_asbr_status_update (ospf, --ospf->redistribute);