diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-05-31 01:55:26 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-06-05 01:52:46 +0200 |
commit | 43e587c1d10175519f16abe0779cc11f7f789c15 (patch) | |
tree | e1f3e442e7455d404327a64dfc61ca562b2b9999 /lib/libfrr.h | |
parent | *: Convert to using frr_vtydir instead of DAEMON_VTY_DIR (diff) | |
download | frr-43e587c1d10175519f16abe0779cc11f7f789c15.tar.xz frr-43e587c1d10175519f16abe0779cc11f7f789c15.zip |
*: Convert over to all -N namespace to change DAEMON_VTY_DIR
When the user specifies -N namespace allow it to influence the
frr_vtydir(DAEMON_VTY_DIR) to have namespace in it's path
like so: $frrstate_dir/<namespace>
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/libfrr.h')
-rw-r--r-- | lib/libfrr.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libfrr.h b/lib/libfrr.h index d17495e04..e2b3db74a 100644 --- a/lib/libfrr.h +++ b/lib/libfrr.h @@ -81,7 +81,10 @@ struct frr_daemon_info { #endif const char *vty_path; const char *module_path; + const char *pathspace; + bool zpathspace; + const char *early_logging; const char *early_loglevel; @@ -120,6 +123,7 @@ struct frr_daemon_info { .version = FRR_VERSION, ) \ /* end */ +extern void frr_init_vtydir(void); extern void frr_preinit(struct frr_daemon_info *daemon, int argc, char **argv); extern void frr_opt_add(const char *optstr, const struct option *longopts, const char *helpstr); @@ -150,7 +154,7 @@ extern void frr_fini(void); extern char config_default[512]; extern char frr_zclientpath[256]; extern const char frr_sysconfdir[]; -extern const char frr_vtydir[]; +extern char frr_vtydir[256]; extern const char frr_moduledir[]; extern char frr_protoname[]; |