#include "ospfd/ospf_ase.h"
+DEFINE_QOBJ_TYPE(ospf)
/* OSPF process wide configuration. */
static struct ospf_master ospf_master;
new->lsa_refresh_interval = OSPF_LSA_REFRESH_INTERVAL_DEFAULT;
new->t_lsa_refresher = thread_add_timer (master, ospf_lsa_refresh_walker,
new, new->lsa_refresh_interval);
- new->lsa_refresher_started = quagga_monotime ();
+ new->lsa_refresher_started = monotime(NULL);
if ((new->fd = ospf_sock_init()) < 0)
{
/* Enable "log-adjacency-changes" */
SET_FLAG(new->config, OSPF_LOG_ADJACENCY_CHANGES);
+ QOBJ_REG (new, ospf);
+
return new;
}
int i;
u_short instance = 0;
+ QOBJ_UNREG (ospf);
+
ospf_opaque_type11_lsa_term (ospf);
/* be nice if this worked, but it doesn't */
return 1;
time_left = ospf->lsa_refresh_interval -
- (quagga_monotime () - ospf->lsa_refresher_started);
+ (monotime(NULL) - ospf->lsa_refresher_started);
if (time_left > interval)
{
int time_left;
time_left = ospf->lsa_refresh_interval -
- (quagga_monotime () - ospf->lsa_refresher_started);
+ (monotime(NULL) - ospf->lsa_refresher_started);
if (time_left > OSPF_LSA_REFRESH_INTERVAL_DEFAULT)
{