Now that "router rip" and all underlying commands were converted to the
new northbound model, there's no need to use the qobj infrastructure to
keep track of the 'rip' global variable anymore.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
#include "ripd/rip_debug.h"
#include "ripd/rip_errors.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;
}
struct listnode *listnode = NULL;
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 "hook.h"
#include "nexthop.h"
#include "rip_memory.h"
bool metric_config;
uint8_t metric;
} route_map[ZEBRA_ROUTE_MAX];
-
- QOBJ_FIELDS
};
-DECLARE_QOBJ_TYPE(rip)
/* RIP routing table entry which belong to rip_packet. */
struct rte {