summaryrefslogtreecommitdiffstats
path: root/ldpd/ldp_vty_exec.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/ldp_vty_exec.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/ldp_vty_exec.c')
-rw-r--r--ldpd/ldp_vty_exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldpd/ldp_vty_exec.c b/ldpd/ldp_vty_exec.c
index a57cf3c3f..a9138be2f 100644
--- a/ldpd/ldp_vty_exec.c
+++ b/ldpd/ldp_vty_exec.c
@@ -405,9 +405,9 @@ ldp_vty_connect(struct imsgbuf *ibuf)
memset(&s_un, 0, sizeof(s_un));
s_un.sun_family = AF_UNIX;
- strlcpy(s_un.sun_path, LDPD_SOCKET, sizeof(s_un.sun_path));
+ strlcpy(s_un.sun_path, ctl_sock_path, sizeof(s_un.sun_path));
if (connect(ctl_sock, (struct sockaddr *)&s_un, sizeof(s_un)) == -1) {
- log_warn("%s: connect: %s", __func__, LDPD_SOCKET);
+ log_warn("%s: connect: %s", __func__, ctl_sock_path);
close(ctl_sock);
return (-1);
}