diff options
author | David Lamparter <equinox@diac24.net> | 2009-10-14 18:27:40 +0200 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2010-02-04 02:53:48 +0100 |
commit | db0516ace09969cba08f5a6aaddf97b29b5ecb78 (patch) | |
tree | 8821406a797a3388d26fbe328eeea753328cad4a /bgpd | |
parent | ac9ed56d887357049bae1bc901e80b58961d6380 (diff) | |
download | quagga-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 'bgpd')
-rw-r--r-- | bgpd/bgp_nexthop.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bgpd/bgp_nexthop.c b/bgpd/bgp_nexthop.c index 0cde665e..ba6f6ffa 100644 --- a/bgpd/bgp_nexthop.c +++ b/bgpd/bgp_nexthop.c @@ -28,6 +28,7 @@ Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA #include "network.h" #include "log.h" #include "memory.h" +#include "paths.h" #include "bgpd/bgpd.h" #include "bgpd/bgp_table.h" @@ -1097,7 +1098,7 @@ zlookup_connect (struct thread *t) #ifdef HAVE_TCP_ZEBRA zlookup->sock = zclient_socket (); #else - zlookup->sock = zclient_socket_un (ZEBRA_SERV_PATH); + zlookup->sock = zclient_socket_un (path_state (ZEBRA_SERV_NAME)); #endif /* HAVE_TCP_ZEBRA */ if (zlookup->sock < 0) return -1; |