diff options
author | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-06-20 21:58:17 +0200 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-06-20 21:58:17 +0200 |
commit | 34f96731f5fb8ab8a1f7018366fc28fd041d73e2 (patch) | |
tree | aff0b0ed3474c7cdb5f6ba7e62ca5e33ccedb814 /include | |
parent | 6270143e57306d11be5c02ee3c7857808583c0f5 (diff) | |
parent | 550cfa775b048abe183c4fdcc8ada8476e562185 (diff) | |
download | ouroboros-34f96731f5fb8ab8a1f7018366fc28fd041d73e2.tar.gz ouroboros-34f96731f5fb8ab8a1f7018366fc28fd041d73e2.zip |
Merged in sandervrijders/ouroboros/be (pull request #134)
build: Change install directories and set correct permissions
Diffstat (limited to 'include')
-rw-r--r-- | include/ouroboros/CMakeLists.txt | 2 | ||||
-rw-r--r-- | include/ouroboros/sockets.h | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/include/ouroboros/CMakeLists.txt b/include/ouroboros/CMakeLists.txt index 245187e9..8347f928 100644 --- a/include/ouroboros/CMakeLists.txt +++ b/include/ouroboros/CMakeLists.txt @@ -14,4 +14,4 @@ set(HEADER_FILES time_utils.h ) -install(FILES ${HEADER_FILES} DESTINATION include/ouroboros) +install(FILES ${HEADER_FILES} DESTINATION usr/include/ouroboros) diff --git a/include/ouroboros/sockets.h b/include/ouroboros/sockets.h index be5ae651..0a215a76 100644 --- a/include/ouroboros/sockets.h +++ b/include/ouroboros/sockets.h @@ -36,10 +36,13 @@ typedef IrmMsg irm_msg_t; #include "ipcpd_messages.pb-c.h" typedef IpcpMsg ipcp_msg_t; -#define IRM_SOCK_PATH "/tmp/irm_sock" +#define SOCK_PATH "/var/run/ouroboros/" +#define SOCK_PATH_SUFFIX ".sock" + +#define IRM_SOCK_PATH SOCK_PATH "irm" SOCK_PATH_SUFFIX #define IRM_MSG_BUF_SIZE 256 -#define IPCP_SOCK_PATH_PREFIX "/tmp/ipcp_sock" +#define IPCP_SOCK_PATH_PREFIX SOCK_PATH "ipcp" #define IPCP_MSG_BUF_SIZE IRM_MSG_BUF_SIZE /* Returns the full socket path of an IPCP */ |