+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
#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
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++)
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);
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. */