summaryrefslogtreecommitdiff
path: root/zebra/zebra_dplane.c
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2018-08-06 16:19:45 -0400
committerMark Stapp <mjs@voltanet.io>2018-10-25 08:34:30 -0400
commit1bcea841b12f27b694da9b25c17c5a2d286404c3 (patch)
treea5efc64c231e2e0cc90174c1fcec2219dc4cbc07 /zebra/zebra_dplane.c
parentfe2c53d4ea87c63762547fdee42ae49e1577a681 (diff)
zebra: netlink fuzzing path correction
Correct use of netlink_parse_info() in the netlink fuzzing path. Also clarify a couple of comments about pthreads. Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'zebra/zebra_dplane.c')
-rw-r--r--zebra/zebra_dplane.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/zebra/zebra_dplane.c b/zebra/zebra_dplane.c
index 8fec9fbce7..7bc623fdf0 100644
--- a/zebra/zebra_dplane.c
+++ b/zebra/zebra_dplane.c
@@ -740,7 +740,7 @@ int dplane_provider_register(const char *name,
}
if (prio <= DPLANE_PRIO_NONE ||
- prio >= DPLANE_PRIO_LAST) {
+ prio > DPLANE_PRIO_LAST) {
ret = EINVAL;
goto done;
}
@@ -798,7 +798,9 @@ static void zebra_dplane_init_internal(struct zebra_t *zebra)
/* 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;
}