summaryrefslogtreecommitdiff
path: root/include/ouroboros/config.h.in
blob: 6861c6cba4b722f3cbda7bf240a55d3c8c91e2bc (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
/*
 * Ouroboros - Copyright (C) 2016
 *
 * Configuration information
 *
 *    Sander Vrijders <sander.vrijders@intec.ugent.be>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * 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., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

#ifndef OUROBOROS_CONFIG
#define OUROBOROS_CONFIG

#define PROJECT_NAME           "@CMAKE_PROJECT_NAME@"
#define PROJECT_VERSION        "@PACKAGE_VERSION@"
#define INSTALL_PREFIX         "@CMAKE_INSTALL_PREFIX@"
#define _POSIX_C_SOURCE        200809L
#define IPCP_SHIM_UDP_EXEC     "@IPCP_SHIM_UDP_TARGET@"
#define IPCP_SHIM_ETH_LLC_EXEC "@IPCP_SHIM_ETH_LLC_TARGET@"
#define IPCP_NORMAL_EXEC       "@IPCP_NORMAL_TARGET@"
#define IPCP_LOCAL_EXEC        "@IPCP_LOCAL_TARGET@"
#define AP_MAX_FLOWS           256
#define SHM_DU_BUFF_BLOCK_SIZE sysconf(_SC_PAGESIZE)
#define SHM_DU_MAP_FILENAME    "ouroboros_du_map"
#define SHM_BLOCKS_IN_MAP      (1 << 14)
#define SHM_DU_TIMEOUT_MICROS  2000
#define DU_BUFF_HEADSPACE      128
#define DU_BUFF_TAILSPACE      0
#define SHM_AP_RBUFF_PREFIX    "ouroboros_rb_"
#define SHM_RBUFF_SIZE         (1 << 14)

#endif