diff options
author | Maria Matejka <mq@ucw.cz> | 2022-06-24 15:27:26 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-06-27 12:32:47 +0200 |
commit | 13ef5e53dd4a98c80261139b4c9ce4b1074cac40 (patch) | |
tree | 8508b9b004747a55b5d53fac22b29ce5f6977f57 /proto/mrt | |
parent | 5c1ebe012e1bbfec52b4fba8b59edd355a7dff91 (diff) |
The show-route CLI command now uses the route export API
In the multithreaded environment, it is not supposed that anybody
traverses the routing table as the CLI show-route was doing. Now the
routing table traversal is gone and CLI won't hold the table locked
while computing filters.
Diffstat (limited to 'proto/mrt')
-rw-r--r-- | proto/mrt/mrt.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/proto/mrt/mrt.c b/proto/mrt/mrt.c index fcbe317b..5ef4cd44 100644 --- a/proto/mrt/mrt.c +++ b/proto/mrt/mrt.c @@ -703,14 +703,17 @@ mrt_dump_cont(struct cli *c) cli_printf(c, 0, ""); mrt_table_dump_free(c->rover); - c->cont = c->cleanup = c->rover = NULL; + c->cont = NULL; + c->cleanup = NULL; + c->rover = NULL; } -static void +static int mrt_dump_cleanup(struct cli *c) { mrt_table_dump_free(c->rover); c->rover = NULL; + return 0; } void |