summaryrefslogtreecommitdiff
path: root/zebra/main.c
diff options
context:
space:
mode:
authorMark Stapp <mjs@cisco.com>2024-10-30 11:02:17 -0400
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-12-03 20:27:50 +0000
commit9e67464d77594b59d8d30c3e633bf596fe701752 (patch)
tree5019c0f6029c352e1d4398d85af1e35771e3f0e6 /zebra/main.c
parentdafe8e9d46c188449e422b45a7bcbaf7b36c6b58 (diff)
zebra: separate zebra ZAPI server open and accept
Separate zebra's ZAPI server socket handling into two phases: an early phase that opens the socket, and a later phase that starts listening for client connections. Signed-off-by: Mark Stapp <mjs@cisco.com> (cherry picked from commit 506097a1b96974c261411edd25330ceaf90fa3db)
Diffstat (limited to 'zebra/main.c')
-rw-r--r--zebra/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/zebra/main.c b/zebra/main.c
index 7fcbfa1396..a022017d24 100644
--- a/zebra/main.c
+++ b/zebra/main.c
@@ -442,6 +442,9 @@ int main(int argc, char **argv)
zebra_if_init();
zebra_debug_init();
+ /* Open Zebra API server socket */
+ zserv_open(zserv_path);
+
/*
* Initialize NS( and implicitly the VRF module), and make kernel
* routing socket. */