Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
#include "ospf6_bfd.h"
DEFINE_MTYPE_STATIC(OSPF6D, CFG_PLIST_NAME, "configured prefix list names")
#include "ospf6_bfd.h"
DEFINE_MTYPE_STATIC(OSPF6D, CFG_PLIST_NAME, "configured prefix list names")
+DEFINE_QOBJ_TYPE(ospf6_interface)
unsigned char conf_debug_ospf6_interface = 0;
unsigned char conf_debug_ospf6_interface = 0;
+ QOBJ_REG (oi, ospf6_interface);
+
oi->lsupdate_list = ospf6_lsdb_create (oi);
oi->lsack_list = ospf6_lsdb_create (oi);
oi->lsdb = ospf6_lsdb_create (oi);
oi->lsupdate_list = ospf6_lsdb_create (oi);
oi->lsack_list = ospf6_lsdb_create (oi);
oi->lsdb = ospf6_lsdb_create (oi);
struct listnode *node, *nnode;
struct ospf6_neighbor *on;
struct listnode *node, *nnode;
struct ospf6_neighbor *on;
for (ALL_LIST_ELEMENTS (oi->neighbor_list, node, nnode, on))
ospf6_neighbor_delete (on);
for (ALL_LIST_ELEMENTS (oi->neighbor_list, node, nnode, on))
ospf6_neighbor_delete (on);
#ifndef OSPF6_INTERFACE_H
#define OSPF6_INTERFACE_H
#ifndef OSPF6_INTERFACE_H
#define OSPF6_INTERFACE_H
#include "if.h"
/* Debug option */
#include "if.h"
/* Debug option */
/* BFD information */
void *bfd_info;
/* BFD information */
void *bfd_info;
+DECLARE_QOBJ_TYPE(ospf6_interface)
/* interface state */
#define OSPF6_INTERFACE_NONE 0
/* interface state */
#define OSPF6_INTERFACE_NONE 0
#include "ospf6_spf.h"
#include "ospf6d.h"
#include "ospf6_spf.h"
#include "ospf6d.h"
+DEFINE_QOBJ_TYPE(ospf6)
+
/* global ospf6d variable */
struct ospf6 *ospf6;
/* global ospf6d variable */
struct ospf6 *ospf6;
/* Enable "log-adjacency-changes" */
SET_FLAG(o->config_flags, OSPF6_LOG_ADJACENCY_CHANGES);
/* Enable "log-adjacency-changes" */
SET_FLAG(o->config_flags, OSPF6_LOG_ADJACENCY_CHANGES);
struct listnode *node, *nnode;
struct ospf6_area *oa;
struct listnode *node, *nnode;
struct ospf6_area *oa;
ospf6_disable (ospf6);
for (ALL_LIST_ELEMENTS (o->area_list, node, nnode, oa))
ospf6_disable (ospf6);
for (ALL_LIST_ELEMENTS (o->area_list, node, nnode, oa))
#ifndef OSPF6_TOP_H
#define OSPF6_TOP_H
#ifndef OSPF6_TOP_H
#define OSPF6_TOP_H
#include "routemap.h"
/* OSPFv3 top level data structure */
#include "routemap.h"
/* OSPFv3 top level data structure */
u_char distance_external;
struct route_table *distance_table;
u_char distance_external;
struct route_table *distance_table;
+DECLARE_QOBJ_TYPE(ospf6)
#define OSPF6_DISABLED 0x01
#define OSPF6_STUB_ROUTER 0x02
#define OSPF6_DISABLED 0x01
#define OSPF6_STUB_ROUTER 0x02
#include "ospfd/ospf_snmp.h"
#endif /* HAVE_SNMP */
#include "ospfd/ospf_snmp.h"
#endif /* HAVE_SNMP */
+DEFINE_QOBJ_TYPE(ospf_interface)
int
ospf_if_get_output_cost (struct ospf_interface *oi)
int
ospf_if_get_output_cost (struct ospf_interface *oi)
ospf_opaque_type9_lsa_init (oi);
oi->ospf = ospf;
ospf_opaque_type9_lsa_init (oi);
oi->ospf = ospf;
+ QOBJ_REG (oi, ospf_interface);
+
ospf_opaque_type9_lsa_term (oi);
ospf_opaque_type9_lsa_term (oi);
/* Free Pseudo Neighbour */
ospf_nbr_delete (oi->nbr_self);
/* Free Pseudo Neighbour */
ospf_nbr_delete (oi->nbr_self);
#ifndef _ZEBRA_OSPF_INTERFACE_H
#define _ZEBRA_OSPF_INTERFACE_H
#ifndef _ZEBRA_OSPF_INTERFACE_H
#define _ZEBRA_OSPF_INTERFACE_H
#include "ospfd/ospf_packet.h"
#include "ospfd/ospf_spf.h"
#include "ospfd/ospf_packet.h"
#include "ospfd/ospf_spf.h"
u_int32_t state_change; /* Number of status change. */
u_int32_t full_nbrs;
u_int32_t state_change; /* Number of status change. */
u_int32_t full_nbrs;
+DECLARE_QOBJ_TYPE(ospf_interface)
/* Prototypes. */
extern char *ospf_if_name (struct ospf_interface *);
/* Prototypes. */
extern char *ospf_if_name (struct ospf_interface *);
#include "ospfd/ospf_ase.h"
#include "ospfd/ospf_ase.h"
/* OSPF process wide configuration. */
static struct ospf_master ospf_master;
/* OSPF process wide configuration. */
static struct ospf_master ospf_master;
/* Enable "log-adjacency-changes" */
SET_FLAG(new->config, OSPF_LOG_ADJACENCY_CHANGES);
/* Enable "log-adjacency-changes" */
SET_FLAG(new->config, OSPF_LOG_ADJACENCY_CHANGES);
+ QOBJ_REG (new, ospf);
+
int i;
u_short instance = 0;
int i;
u_short instance = 0;
ospf_opaque_type11_lsa_term (ospf);
/* be nice if this worked, but it doesn't */
ospf_opaque_type11_lsa_term (ospf);
/* be nice if this worked, but it doesn't */
#define _ZEBRA_OSPFD_H
#include <zebra.h>
#define _ZEBRA_OSPFD_H
#include <zebra.h>
#include "libospf.h"
#include "filter.h"
#include "libospf.h"
#include "filter.h"
u_int32_t if_ospf_cli_count;
struct route_table *distance_table;
u_int32_t if_ospf_cli_count;
struct route_table *distance_table;
/* OSPF area structure. */
struct ospf_area
/* OSPF area structure. */
struct ospf_area