summaryrefslogtreecommitdiffstats
path: root/zebra/zserv.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2009-10-14 18:27:40 +0200
committerDavid Lamparter <equinox@diac24.net>2010-02-04 02:53:48 +0100
commitdb0516ace09969cba08f5a6aaddf97b29b5ecb78 (patch)
tree8821406a797a3388d26fbe328eeea753328cad4a /zebra/zserv.c
parentac9ed56d887357049bae1bc901e80b58961d6380 (diff)
downloadquagga-db0516ace09969cba08f5a6aaddf97b29b5ecb78.tar.bz2
quagga-db0516ace09969cba08f5a6aaddf97b29b5ecb78.tar.xz
lib: fs namespacing 3/5: use path_state for zserv socket
this uses the path_state helper for determining the path of quagga's zserv.api socket. this allows for running multiple instances of zebra each with its own interface.
Diffstat (limited to 'zebra/zserv.c')
-rw-r--r--zebra/zserv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/zebra/zserv.c b/zebra/zserv.c
index cb5e411c..e3e15a01 100644
--- a/zebra/zserv.c
+++ b/zebra/zserv.c
@@ -36,6 +36,7 @@
#include "privs.h"
#include "network.h"
#include "buffer.h"
+#include "paths.h"
#include "zebra/zserv.h"
#include "zebra/router-id.h"
@@ -1738,6 +1739,6 @@ zebra_zserv_socket_init (void)
#ifdef HAVE_TCP_ZEBRA
zebra_serv ();
#else
- zebra_serv_un (ZEBRA_SERV_PATH);
+ zebra_serv_un (path_state (ZEBRA_SERV_NAME));
#endif /* HAVE_TCP_ZEBRA */
}