summaryrefslogtreecommitdiffstats
path: root/src/vlibmemory/socket_api.h
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2019-08-07 13:41:39 +0200
committerAndrew Yourtchenko <ayourtch@gmail.com>2019-08-08 11:23:31 +0000
commit6595ff7f88be45d4c3f4dae09f7253b8b4ed26af (patch)
tree1e443929216b11edf0252c1079537d295127ea19 /src/vlibmemory/socket_api.h
parentb3392334942ed5459edfa7f11e098f4eab3aa29a (diff)
api: api socket respect unix runtime directory
socksvr {} should respect the unix runtime directory. Default is now /run/vpp/api.sock The 'default' keyword is deprecated. The user is responsible for creating directories outside of the unix runtime directory. Not yet done: Exit VPP when socket cannot be opened. (currently only process exits). Type: fix Signed-off-by: Ole Troan <ot@cisco.com> Change-Id: I6dd66ed58a3d7e02674dfa16d72c1d7bba07b79e
Diffstat (limited to 'src/vlibmemory/socket_api.h')
-rw-r--r--src/vlibmemory/socket_api.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vlibmemory/socket_api.h b/src/vlibmemory/socket_api.h
index f3af300238c..7192e0fcacc 100644
--- a/src/vlibmemory/socket_api.h
+++ b/src/vlibmemory/socket_api.h
@@ -22,7 +22,10 @@
#include <svm/ssvm.h>
#include <vppinfra/file.h>
-#define API_SOCKET_FILE "/run/vpp-api.sock"
+/* Deprecated */
+#define API_SOCKET_FILE "/run/vpp/api.sock"
+
+#define API_SOCKET_FILENAME "api.sock"
typedef struct
{