diff options
| author | Jafar Al-Gharaibeh <jafar@atcorp.com> | 2024-12-03 14:26:09 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-03 14:26:09 -0600 |
| commit | 71f9899bc4686bf211ba069fbce8045d61ba8e4c (patch) | |
| tree | e1982aa760373e0576112fc3f9e7c35daebabbb1 /zebra/zserv.h | |
| parent | e9c9db0122ec29d7d97d11d93d14e2b04efe191a (diff) | |
| parent | 506097a1b96974c261411edd25330ceaf90fa3db (diff) | |
Merge pull request #17313 from mjstapp/zserv_open_unpriv
zebra: separate zebra ZAPI server open and accept
Diffstat (limited to 'zebra/zserv.h')
| -rw-r--r-- | zebra/zserv.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/zebra/zserv.h b/zebra/zserv.h index 87d2b4adbf..ce47ef19fa 100644 --- a/zebra/zserv.h +++ b/zebra/zserv.h @@ -256,15 +256,24 @@ extern void zserv_init(void); extern void zserv_close(void); /* + * Open Zebra API server socket. + * + * Create and open the server socket. + * + * path + * where to place the Unix domain socket + */ +extern void zserv_open(const char *path); + +/* * Start Zebra API server. * - * Allocates resources, creates the server socket and begins listening on the - * socket. + * Allocates resources and begins listening on the server socket. * * path * where to place the Unix domain socket */ -extern void zserv_start(char *path); +extern void zserv_start(const char *path); /* * Send a message to a connected Zebra API client. |
