{
struct channel *c = SKIP_BACK(struct channel, out_req, req);
CD(c, "Channel export state changed to %s", rt_export_state_name(state));
-
+log("you are here! why not to log? channel_export_log_state_change");
switch (state)
{
case TES_FEEDING:
{
struct channel *c = SKIP_BACK(struct channel, refeed_req, req);
CD(c, "Channel export state changed to %s", rt_export_state_name(state));
-
+ log("you are here! why not to log? channel_refeed_log_state");
switch (state)
{
case TES_FEEDING:
struct channel *
proto_add_channel(struct proto *p, struct channel_config *cf)
{
+ log("you got here! why not to log? protoadd channel");
struct channel *c = mb_allocz(proto_pool, cf->class->channel_size);
c->name = cf->name;
add_tail(&p->channels, &c->n);
CD(c, "Connected to table %s", c->table->name);
-
+ log("you got here! why not to log? protoadd channel end");
return c;
}
static void
proto_start_channels(struct proto *p)
{
+ log("you are here! why not to log? proto_start_channels");
struct channel *c;
WALK_LIST(c, p->channels)
if (!c->disabled)
channel_set_state(c, CS_UP);
+ log("you are here! why not to log? proto_start_channels end");
}
static void
struct channel *c = s->c;
CD(c, "Reload triggered by RPKI change");
+ bug("you got here! why not to log?");
struct channel_import_request *cir = lp_alloc(s->trie->lp, sizeof *cir);
*cir = (struct channel_import_request) {
.trie = s->trie,
struct channel *c = s->c;
CD(c, "Feeding triggered by RPKI change");
+ bug("you got here! why not to log?");
/* Setup feeding request */
struct channel_feeding_request *cfr = lp_alloc(s->trie->lp, sizeof *cfr);
static void
channel_export_one_roa(struct rt_export_request *req, const net_addr *net, struct rt_pending_export *first)
{
+log("you got here! why not to log? channel_export_one_roa");
struct roa_subscription *s = SKIP_BACK(struct roa_subscription, req, req);
switch (net->type)
{
};
add_tail(&c->roa_subscriptions, &s->roa_node);
rt_request_export(tab, &s->req);
+ bug("you got here! why not to log?");
}
static void
DBG("%s.%s: Channel start import req=%p\n", c->proto->name, c->name, &c->in_req);
rt_request_import(c->table, &c->in_req);
+ log("you got here! why not to log? channel_start_import");
}
static void
DBG("%s.%s: Channel start export req=%p\n", c->proto->name, c->name, &c->out_req);
rt_request_export(c->table, &c->out_req);
+ log("you got here! why not to log? channel_start_export");
}
static void
struct channel *c = SKIP_BACK(struct channel, refeed_req, req);
req->hook = NULL;
-
+log("you got here! why not to log? protoadd channel_refeed_stopped");
channel_feed_end(c);
}
channel_init_feeding(struct channel *c)
{
int no_trie = 0;
-
+log("you got here! why not to log? channel_init_feeding");
for (struct channel_feeding_request *cfrp = c->refeed_pending; cfrp; cfrp = cfrp->next)
if (cfrp->type == CFRT_DIRECT)
{
}
rt_request_export(c->table, &c->refeed_req);
+ log("you got here! why not to log? channel_init_feeding done");
}
static int
static void
channel_feed_end(struct channel *c)
{
+ log("you got here! why not to log? channel_feed_end start");
/* Reset export limit if the feed ended with acceptable number of exported routes */
struct limit *l = &c->out_limit;
if (c->refeeding &&
/* Run the pending batch */
if (c->refeed_pending)
channel_init_feeding(c);
+ log("you got here! why not to log? channel_feed_end");
}
/* Called by protocol for reload from in_table */
void
channel_schedule_reload(struct channel *c, struct channel_import_request *cir)
{
+log("you got here! why not to log? protoadd channel_schedule_reload");
ASSERT(c->in_req.hook);
int no_trie = 0;
if (cir)
}
rt_request_export(c->table, &c->reload_req);
+ log("you got here! why not to log? protoadd channel_schedule_reload end");
}
static void
channel_request_feeding(struct channel *c, struct channel_feeding_request *cfr)
{
ASSERT_DIE(c->out_req.hook);
-
+bug("you got here! why not to log?");
CD(c, "Feeding requested (%s)",
cfr->type == CFRT_DIRECT ? "direct" :
(cfr->trie ? "partial" : "auxiliary"));
ASSERT(channel_reloadable(c));
CD(c, "Reload requested");
-
+bug("you got here! why not to log?");
struct channel_import_request* cir = mb_alloc(c->proto->pool, sizeof *cir);
cir->trie = NULL;
cir->done = channel_import_request_done_dynamic;
ASSERT(channel_reloadable(c));
CD(c, "Partial import reload requested");
+ bug("you got here! why not to log?");
if ((c->in_keep & RIK_PREFILTER) == RIK_PREFILTER)
channel_schedule_reload(c, cir);
};
protos_do_commit(new, old, force_reconfig, type);
+ log("you are here! why not to log? protos_commit ......................");
}
static void
if (p->cf->late_if_feed)
iface_subscribe(&p->iface_sub);
+ log("you are here! why not to log? proto_do up end");
}
static inline void
proto_cmd_reload(struct proto *p, uintptr_t _prr, int cnt UNUSED)
{
struct proto_reload_request *prr = (void *) _prr;
-
if (prr->trie)
prr->ev.hook = channel_reload_out_done_main;
struct channel *c;
log("channel proto_cmd_reload_called");
-
+bug("you got here! why not to log?");
if (p->disabled)
{
cli_msg(-8, "%s: already disabled", p->name);