From: Maria Matejka Date: Mon, 24 Jun 2024 09:10:07 +0000 (+0200) Subject: Additional CLI sockets can be now configured in the config file X-Git-Tag: v2.16~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3b6661ddda9a9c2591444799ff88cd82621d06b;p=thirdparty%2Fbird.git Additional CLI sockets can be now configured in the config file If the user has such a need, they may configure additional sockets in the config file. This may work for e.g. some advanced access control. --- diff --git a/conf/conf.c b/conf/conf.c index d98d421cd..805fdbd47 100644 --- a/conf/conf.c +++ b/conf/conf.c @@ -552,6 +552,7 @@ order_shutdown(int gr) init_list(&c->tables); init_list(&c->mpls_domains); init_list(&c->symbols); + c->cli = (struct cli_config_list) {}; memset(c->def_tables, 0, sizeof(c->def_tables)); c->shutdown = 1; c->gr_down = gr; diff --git a/conf/confbase.Y b/conf/confbase.Y index cdbdf1ce2..4bf70ccfa 100644 --- a/conf/confbase.Y +++ b/conf/confbase.Y @@ -100,6 +100,7 @@ CF_DECLS mpls_label_stack *mls; const struct adata *bs; struct aggr_item_node *ai; + struct cli_config *cli; } %token END CLI_MARKER INVALID_TOKEN ELSECOL DDOT diff --git a/doc/bird.sgml b/doc/bird.sgml index 445430121..5acdf7c13 100644 --- a/doc/bird.sgml +++ b/doc/bird.sgml @@ -1219,9 +1219,11 @@ protocol bgp { Remote control