1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Remember protocol instance in proto_config and use that for

`show protocols <name>'.
This commit is contained in:
Martin Mares
1999-11-30 14:04:09 +00:00
parent c9aae7f47f
commit 1d2664a4d4
5 changed files with 44 additions and 27 deletions

View File

@@ -6,6 +6,8 @@
* Can be freely distributed and used under the terms of the GNU GPL.
*/
#include <string.h>
#include "nest/bird.h"
#include "nest/cli.h"
#include "conf/conf.h"
@@ -119,7 +121,7 @@ cli_command(struct cli *c)
struct config f;
int res;
f.pool = NULL;
bzero(&f, sizeof(f));
f.mem = c->parser_pool;
cf_read_hook = cli_cmd_read_hook;
cli_rh_pos = c->rx_buf;