]> git.puffer.fish Git - matthieu/frr.git/commitdiff
[ospfd] misc small fixes. Fix default stub router setting. no opaque compile.
authorpaul <paul>
Mon, 14 Nov 2005 11:11:11 +0000 (11:11 +0000)
committerpaul <paul>
Mon, 14 Nov 2005 11:11:11 +0000 (11:11 +0000)
2005-11-14 Paul Jakma <paul.jakma@sun.com>

* ospfd.c: (ospf_new) stub-shutdown should just default to
  unconfigured, too strange otherwise.
  (ospf_finish_final) t_opaque_lsa_self TIMER_OFF should be
  preprocessor conditional on HAVE_OPAQUE_LSA.
* ospfd.h: (struct ospf) remove the SHUTDOWN_DEFAULT define.
  no longer used, plus it wasn't in range that the command
  accepted.
* ospf_zebra.h: Depends on vty.h, include it.

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

index 751f5d36c2702f8c558ed32b423b861f9014c5f4..825b92c1cfce0c8e0cc0d44c28fd00f8300d542a 100644 (file)
@@ -1,3 +1,14 @@
+2005-11-14 Paul Jakma <paul.jakma@sun.com>
+
+       * ospfd.c: (ospf_new) stub-shutdown should just default to
+         unconfigured, too strange otherwise.
+         (ospf_finish_final) t_opaque_lsa_self TIMER_OFF should be
+         preprocessor conditional on HAVE_OPAQUE_LSA.
+       * ospfd.h: (struct ospf) remove the SHUTDOWN_DEFAULT define.
+         no longer used, plus it wasn't in range that the command
+         accepted.
+       * ospf_zebra.h: Depends on vty.h, include it.
+
 2005-11-11 Paul Jakma <paul.jakma@sun.com>
 
        * ospf_spf.c: (ospf_canonical_nexthops_free) Free only
index 7fe87b7f0702cfcd8993e9049f11da6072514ce4..3efd8958dbbe15efa2f43b5d0fc9adf723db820f 100644 (file)
@@ -23,6 +23,8 @@
 #ifndef _ZEBRA_OSPF_ZEBRA_H
 #define _ZEBRA_OSPF_ZEBRA_H
 
+#include "vty.h"
+
 #define EXTERNAL_METRIC_TYPE_1      0
 #define EXTERNAL_METRIC_TYPE_2      1
 
index 69f091d738ecdb26766ac6f40c0ef654a94c6a79..3cc0202013687b4c9c568796fe3054c3692e2afe 100644 (file)
@@ -175,7 +175,7 @@ ospf_new (void)
   new->external_lsas = route_table_init ();
   
   new->stub_router_startup_time = OSPF_STUB_ROUTER_UNCONFIGURED;
-  new->stub_router_shutdown_time = OSPF_STUB_ROUTER_SHUTDOWN_DEFAULT;
+  new->stub_router_shutdown_time = OSPF_STUB_ROUTER_UNCONFIGURED;
   
   /* Distribute parameter init. */
   for (i = 0; i <= ZEBRA_ROUTE_MAX; i++)
@@ -466,7 +466,9 @@ ospf_finish_final (struct ospf *ospf)
   OSPF_TIMER_OFF (ospf->t_lsa_refresher);
   OSPF_TIMER_OFF (ospf->t_read);
   OSPF_TIMER_OFF (ospf->t_write);
+#ifdef HAVE_OPAQUE_LSA
   OSPF_TIMER_OFF (ospf->t_opaque_lsa_self);
+#endif
 
   close (ospf->fd);
   stream_free(ospf->ibuf);
index ed66ebf7ec5111a79eb18a306d7ee0a2e0fb5b80..ff27a3275cfc5c647bc28938a87be8f13d7433fe 100644 (file)
@@ -198,7 +198,6 @@ struct ospf
   unsigned int stub_router_startup_time;       /* seconds */
   unsigned int stub_router_shutdown_time;      /* seconds */
 #define OSPF_STUB_ROUTER_UNCONFIGURED    0
-#define OSPF_STUB_ROUTER_SHUTDOWN_DEFAULT 2
 
   /* SPF parameters */
   unsigned int spf_delay;              /* SPF delay time. */