diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ouroboros/CMakeLists.txt | 6 | ||||
-rw-r--r-- | include/ouroboros/sockets.h.in (renamed from include/ouroboros/sockets.h) | 5 |
2 files changed, 8 insertions, 3 deletions
diff --git a/include/ouroboros/CMakeLists.txt b/include/ouroboros/CMakeLists.txt index c0a83030..fe0ccf5d 100644 --- a/include/ouroboros/CMakeLists.txt +++ b/include/ouroboros/CMakeLists.txt @@ -1,6 +1,12 @@ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/version.h.in" "${CMAKE_CURRENT_BINARY_DIR}/version.h" @ONLY) +set(SOCK_BUF_SIZE 10240 CACHE STRING + "Size of the buffer used by the UNIX sockets for local IPC") + +configure_file("${CMAKE_CURRENT_SOURCE_DIR}/sockets.h.in" + "${CMAKE_CURRENT_BINARY_DIR}/sockets.h" @ONLY) + set(HEADER_FILES cacep.h cdefs.h diff --git a/include/ouroboros/sockets.h b/include/ouroboros/sockets.h.in index 36ea4da9..4557a9ef 100644 --- a/include/ouroboros/sockets.h +++ b/include/ouroboros/sockets.h.in @@ -40,10 +40,9 @@ typedef IpcpMsg ipcp_msg_t; #define SOCK_PATH_SUFFIX ".sock" #define IRM_SOCK_PATH SOCK_PATH "irm" SOCK_PATH_SUFFIX -#define IRM_MSG_BUF_SIZE 2048 - #define IPCP_SOCK_PATH_PREFIX SOCK_PATH "ipcp" -#define IPCP_MSG_BUF_SIZE IRM_MSG_BUF_SIZE + +#define SOCK_BUF_SIZE @SOCK_BUF_SIZE@ /* Returns the full socket path of an IPCP */ char * ipcp_sock_path(pid_t pid); |