summaryrefslogtreecommitdiffstats
path: root/ldpd/ldpe.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2017-01-24 18:31:40 +0100
committerMartin Winter <mwinter@opensourcerouting.org>2017-01-25 18:44:42 +0100
commit372b8bd381661d6df8ff6d2b96da31d653a6f16b (patch)
tree52ea53a421206f250f6fa962d3e369d3e5f0c457 /ldpd/ldpe.c
parentvtysh: Use HOME environment variable to get homedir and only fallback to pass... (diff)
downloadfrr-372b8bd381661d6df8ff6d2b96da31d653a6f16b.tar.xz
frr-372b8bd381661d6df8ff6d2b96da31d653a6f16b.zip
ldpd: add ctl_socket cli option to override the compiled-in location for the control socket
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ldpd/ldpe.c')
-rw-r--r--ldpd/ldpe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ldpd/ldpe.c b/ldpd/ldpe.c
index 37a3d79a2..0d0fe5c9e 100644
--- a/ldpd/ldpe.c
+++ b/ldpd/ldpe.c
@@ -99,7 +99,7 @@ static struct quagga_signal_t ldpe_signals[] =
/* label distribution protocol engine */
void
-ldpe(const char *user, const char *group)
+ldpe(const char *user, const char *group, const char *ctl_path)
{
struct thread thread;
@@ -128,6 +128,7 @@ ldpe(const char *user, const char *group)
ldpe_privs.group = group;
zprivs_init(&ldpe_privs);
+ strlcpy(ctl_sock_path, ctl_path, sizeof(ctl_sock_path));
if (control_init() == -1)
fatalx("control socket setup failed");