summaryrefslogtreecommitdiff
path: root/src/irmd/config.h.in
blob: 6bf3817b9d72c7be6a40f5b98627ed2aa660c08f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/*
 * Ouroboros - Copyright (C) 2016 - 2024
 *
 * Configuration for the IPC Resource Manager
 *
 *    Dimitri Staessens <dimitri@ouroboros.rocks>
 *    Sander Vrijders   <sander@ouroboros.rocks>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., http://www.fsf.org/about/contact/.
 */


#define IPCP_UDP_EXEC          "@IPCP_UDP_TARGET@"
#define IPCP_ETH_LLC_EXEC      "@IPCP_ETH_LLC_TARGET@"
#define IPCP_ETH_DIX_EXEC      "@IPCP_ETH_DIX_TARGET@"
#define IPCP_UNICAST_EXEC      "@IPCP_UNICAST_TARGET@"
#define IPCP_BROADCAST_EXEC    "@IPCP_BROADCAST_TARGET@"
#define IPCP_LOCAL_EXEC        "@IPCP_LOCAL_TARGET@"

#define INSTALL_PREFIX         "@CMAKE_INSTALL_PREFIX@"
#define INSTALL_SBINDIR        "@CMAKE_INSTALL_SBINDIR@"

#define PTHREAD_COND_CLOCK     @PTHREAD_COND_CLOCK@

#define SOCKET_TIMEOUT         @SOCKET_TIMEOUT@

#define IRMD_REQ_ARR_TIMEOUT   @IRMD_REQ_ARR_TIMEOUT@

#define FLOW_ALLOC_TIMEOUT     @FLOW_ALLOC_TIMEOUT@
#define FLOW_DEALLOC_TIMEOUT   @FLOW_DEALLOC_TIMEOUT@

#define BOOTSTRAP_TIMEOUT      @BOOTSTRAP_TIMEOUT@
#define ENROLL_TIMEOUT         @ENROLL_TIMEOUT@
#define REG_TIMEOUT            @REG_TIMEOUT@
#define QUERY_TIMEOUT          @QUERY_TIMEOUT@
#define CONNECT_TIMEOUT        @CONNECT_TIMEOUT@

#define SYS_MAX_FLOWS          @SYS_MAX_FLOWS@
#define IRMD_MIN_THREADS       @IRMD_MIN_THREADS@
#define IRMD_ADD_THREADS       @IRMD_ADD_THREADS@


#cmakedefine HAVE_FUSE
#ifdef HAVE_FUSE
#define FUSE_PREFIX            "@FUSE_PREFIX@"
#endif

#cmakedefine HAVE_TOML
#ifdef HAVE_TOML
#define OUROBOROS_CONFIG_DIR   "@OUROBOROS_CONFIG_DIR@"
#define OUROBOROS_CONFIG_FILE  "@OUROBOROS_CONFIG_FILE@"
#endif

#define IRMD_PKILL_TIMEOUT     @IRMD_PKILL_TIMEOUT@

#cmakedefine IRMD_KILL_ALL_PROCESSES
#cmakedefine HAVE_LIBGCRYPT
#cmakedefine HAVE_OPENSSL
#ifdef CONFIG_OUROBOROS_DEBUG
#cmakedefine DEBUG_PROTO_OAP
#endif

#define _B ""
#define _G ""
#define RST ""

#define O7S_ASCII_ART \
RST "\n" \
_B "    ▄▄█████▄▄▄                                                   \n" \
_B "  ▄█▀▀     ▀▀███▄  " _G "                █                       \n" \
_B " ██    ▄▄▄   ▄███▄ " _G "▄  ▄  ▄ ▄   ▄▄  █▄▄   ▄▄  ▄ ▄   ▄▄   ▄▄ \n" \
_B " ██   █   █  █████ " _G "█  █  █▀ ▀ █  █ █  █ █  █ █▀ ▀ █  █ ▀▄ ▀\n" \
_B " ██   ▀▄▄▄▀   ▀█▀  " _G "█  █  █    █  █ █  █ █  █ █    █  █ ▄ ▀▄\n" \
_B "  █▄          █    " _G " ▀▀ ▀ ▀     ▀▀  ▀▀▀   ▀▀  ▀     ▀▀   ▀▀ \n" \
_B "   ▀█▄▄▄▄▄▄▄▄▀                                                   \n" \
_B "     ▀▀▀▀▀▀                                                      \n" \
RST "\n"