diff options
author | Maria Matejka <mq@ucw.cz> | 2023-12-07 13:54:41 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2023-12-07 14:11:16 +0100 |
commit | 3b48dc9bce12b00aa2a212495b19c925e0fda249 (patch) | |
tree | 972764b08538885806ebaa006e75f5abbb5c4a5a /nest/rt-table.c | |
parent | 8f5511dafb54b5788546065c9b572f9b4f9d47ee (diff) |
Table: Adding route refresh begin and end debug messages
Diffstat (limited to 'nest/rt-table.c')
-rw-r--r-- | nest/rt-table.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c index e497524f..e8676822 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -1748,6 +1748,9 @@ rt_examine(rtable *t, net_addr *a, struct channel *c, const struct filter *filte void rt_refresh_begin(rtable *t, struct channel *c) { + if (c->debug & D_EVENTS) + log(L_TRACE "%s.%s: Route refresh begin", c->proto->name, c->name); + FIB_WALK(&t->fib, net, n) { rte *e; @@ -1769,6 +1772,9 @@ rt_refresh_begin(rtable *t, struct channel *c) void rt_refresh_end(rtable *t, struct channel *c) { + if (c->debug & D_EVENTS) + log(L_TRACE "%s.%s: Route refresh end", c->proto->name, c->name); + int prune = 0; FIB_WALK(&t->fib, net, n) |