diff options
author | Everton Marques <everton.marques@gmail.com> | 2014-08-21 15:47:28 -0300 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2015-02-04 06:07:59 +0100 |
commit | 1f298949bea9e58623eb81f245491dcdb1df8c59 (patch) | |
tree | 43f99443889cd692a3f6c8adfc40328a868efb67 /pimd/pim_zebra.c | |
parent | 7cb0d4a384b4964cc53b61549ffdef37fb0d76c5 (diff) | |
download | quagga-1f298949bea9e58623eb81f245491dcdb1df8c59.tar.bz2 quagga-1f298949bea9e58623eb81f245491dcdb1df8c59.tar.xz |
pimd: -z command-line switch to specify zebra socket path.
Diffstat (limited to 'pimd/pim_zebra.c')
-rw-r--r-- | pimd/pim_zebra.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pimd/pim_zebra.c b/pimd/pim_zebra.c index 44046dbb..321e3171 100644 --- a/pimd/pim_zebra.c +++ b/pimd/pim_zebra.c @@ -642,14 +642,17 @@ static int redist_read_ipv4_route(int command, struct zclient *zclient, return 0; } -void pim_zebra_init() +void pim_zebra_init(char *zebra_sock_path) { int i; + if (zebra_sock_path) + zclient_serv_path_set(zebra_sock_path); + #ifdef HAVE_TCP_ZEBRA zlog_notice("zclient update contacting ZEBRA daemon at socket TCP %s,%d", "127.0.0.1", ZEBRA_PORT); #else - zlog_notice("zclient update contacting ZEBRA daemon at socket UNIX %s", ZEBRA_SERV_PATH); + zlog_notice("zclient update contacting ZEBRA daemon at socket UNIX %s", zclient_serv_path_get()); #endif /* Socket for receiving updates from Zebra daemon */ |