cli_msg(-15, "%s: reloading", p->name);
}
+extern void pipe_update_debug(struct proto *P);
+
void
proto_cmd_debug(struct proto *p, uintptr_t mask, int cnt UNUSED)
{
p->debug = mask;
+
+#ifdef CONFIG_PIPE
+ if (p->proto == &proto_pipe)
+ pipe_update_debug(p);
+#endif
}
void
if (cc->in_keep_filtered)
cf_error("Pipe protocol prohibits keeping filtered routes");
+
+ cc->debug = cf->c.debug;
}
static int
.out_filter = cc->out_filter,
.in_limit = cc->in_limit,
.ra_mode = RA_ANY,
+ .debug = cc->debug,
.rpki_reload = cc->rpki_reload,
};
.out_filter = cc->in_filter,
.in_limit = cc->out_limit,
.ra_mode = RA_ANY,
+ .debug = cc->debug,
.rpki_reload = cc->rpki_reload,
};
pipe_show_stats(p);
}
+void
+pipe_update_debug(struct proto *P)
+{
+ struct pipe_proto *p = (void *) P;
+
+ p->pri->debug = p->sec->debug = p->p.debug;
+}
+
struct protocol proto_pipe = {
.name = "Pipe",