*/
void netlink_read_init(const char *fname)
{
+ struct zebra_dplane_info dp_info;
+
snprintf(netlink_fuzz_file, MAXPATHLEN, "%s", fname);
/* Creating this fake socket for testing purposes */
struct zebra_ns *zns = zebra_ns_lookup(NS_DEFAULT);
- netlink_parse_info(netlink_information_fetch, &zns->netlink, zns, 1, 0);
+ /* Capture key info from zns struct */
+ zebra_dplane_info_from_zns(&dp_info, zns, false);
+
+ netlink_parse_info(netlink_information_fetch, &zns->netlink,
+ &dp_info, 1, 0);
}
/**
}
if (prio <= DPLANE_PRIO_NONE ||
- prio >= DPLANE_PRIO_LAST) {
+ prio > DPLANE_PRIO_LAST) {
ret = EINVAL;
goto done;
}
/* TODO -- register kernel 'provider' during init */
- /* TODO -- using zebra core event thread temporarily */
+ /* TODO -- start dataplane pthread. We're using the zebra
+ * core/main thread temporarily
+ */
zdplane_g.dg_master = zebra->master;
}
/*
* Results are returned from the dataplane subsystem, in the context of
- * the dataplane thread. We enqueue the results here for processing by
+ * the dataplane pthread. We enqueue the results here for processing by
* the main thread later.
*/
static int rib_dplane_results(dplane_ctx_h ctx)