Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
#include "ripd/ripd.h"
#include "ripd/rip_debug.h"
+DEFINE_QOBJ_TYPE(rip)
+
/* UDP receive buffer size */
#define RIP_UDP_RCV_BUF 41600
rip_event (RIP_READ, rip->sock);
rip_event (RIP_UPDATE_EVENT, 1);
+ QOBJ_REG (rip, rip);
+
return 0;
}
if (rip)
{
+ QOBJ_UNREG (rip);
+
/* Clear RIP routes */
for (rp = route_top (rip->table); rp; rp = route_next (rp))
if ((list = rp->info) != NULL)
#ifndef _ZEBRA_RIP_H
#define _ZEBRA_RIP_H
+#include "qobj.h"
#include "rip_memory.h"
/* RIP version number. */
int metric_config;
u_int32_t metric;
} route_map[ZEBRA_ROUTE_MAX];
+
+ QOBJ_FIELDS
};
+DECLARE_QOBJ_TYPE(rip)
/* RIP routing table entry which belong to rip_packet. */
struct rte