2014-06-05 09:35:32 +00:00
|
|
|
/** Static server configuration
|
2014-06-25 01:53:37 +00:00
|
|
|
*
|
2014-07-14 11:49:44 +00:00
|
|
|
* This file contains some compiled-in settings.
|
|
|
|
* This settings are not part of the configuration file.
|
2014-06-05 09:34:29 +00:00
|
|
|
*
|
2014-06-28 06:40:52 +00:00
|
|
|
* @file
|
2015-06-02 21:53:04 +02:00
|
|
|
* @author Steffen Vogel <stvogel@eonerc.rwth-aachen.de>
|
2017-03-03 20:20:13 -04:00
|
|
|
* @copyright 2017, Institute for Automation of Complex Power Systems, EONERC
|
2017-04-27 12:56:43 +02:00
|
|
|
* @license GNU General Public License (version 3)
|
|
|
|
*
|
|
|
|
* VILLASnode
|
|
|
|
*
|
|
|
|
* 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 3 of the License, or
|
|
|
|
* any later version.
|
2018-02-06 21:26:12 +01:00
|
|
|
*
|
2017-04-27 12:56:43 +02:00
|
|
|
* 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.
|
2018-02-06 21:26:12 +01:00
|
|
|
*
|
2017-04-27 12:56:43 +02:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2015-06-02 21:53:04 +02:00
|
|
|
*********************************************************************************/
|
2014-06-05 09:34:29 +00:00
|
|
|
|
2017-02-16 09:04:12 -03:00
|
|
|
#pragma once
|
2014-06-05 09:34:29 +00:00
|
|
|
|
2018-06-28 13:42:50 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"{
|
|
|
|
#endif
|
|
|
|
|
2017-07-09 18:45:44 +02:00
|
|
|
/* Paths */
|
|
|
|
#define PLUGIN_PATH PREFIX "/share/villas/node/plugins"
|
|
|
|
#define WEB_PATH PREFIX "/share/villas/node/web"
|
|
|
|
#define SYSFS_PATH "/sys"
|
|
|
|
#define PROCFS_PATH "/proc"
|
|
|
|
|
2016-06-26 15:34:40 +02:00
|
|
|
/** Default number of values in a sample */
|
2017-04-15 22:42:24 +02:00
|
|
|
#define DEFAULT_SAMPLELEN 64
|
2016-06-08 22:52:43 +02:00
|
|
|
#define DEFAULT_QUEUELEN 1024
|
2015-04-01 13:26:46 +02:00
|
|
|
|
2016-11-20 02:45:16 -05:00
|
|
|
/** Number of hugepages which are requested from the the kernel.
|
|
|
|
* @see https://www.kernel.org/doc/Documentation/vm/hugetlbpage.txt */
|
2017-04-24 19:56:01 +02:00
|
|
|
#define DEFAULT_NR_HUGEPAGES 100
|
2016-11-20 02:45:16 -05:00
|
|
|
|
2015-04-01 13:26:46 +02:00
|
|
|
/** Width of log output in characters */
|
2017-07-12 00:56:08 +02:00
|
|
|
#define LOG_WIDTH 80
|
|
|
|
#define LOG_HEIGHT 25
|
2015-04-01 13:26:46 +02:00
|
|
|
|
2014-06-05 09:35:41 +00:00
|
|
|
/** Socket priority */
|
2015-05-06 11:43:05 +02:00
|
|
|
#define SOCKET_PRIO 7
|
2014-06-05 09:34:52 +00:00
|
|
|
|
2014-12-05 12:34:45 +01:00
|
|
|
/* Protocol numbers */
|
2016-06-08 23:21:42 +02:00
|
|
|
#define IPPROTO_VILLAS 137
|
|
|
|
#define ETH_P_VILLAS 0xBABE
|
2015-05-06 11:43:05 +02:00
|
|
|
|
2017-03-29 04:04:20 +02:00
|
|
|
#define USER_AGENT "VILLASnode (" BUILDID ")"
|
2017-01-19 21:03:37 -02:00
|
|
|
|
2017-04-15 22:42:24 +02:00
|
|
|
/* Required kernel version */
|
2015-09-17 00:55:20 +02:00
|
|
|
#define KERNEL_VERSION_MAJ 3
|
2016-06-14 01:19:17 +02:00
|
|
|
#define KERNEL_VERSION_MIN 6
|
2018-06-28 13:42:50 +02:00
|
|
|
|
2018-06-21 09:37:01 +02:00
|
|
|
#cmakedefine BUILDID "@BUILDID@"
|
|
|
|
#cmakedefine V @V@
|
|
|
|
#cmakedefine PREFIX "@PREFIX@"
|
|
|
|
|
|
|
|
/* Available Features */
|
|
|
|
#cmakedefine WITH_WEB
|
|
|
|
#cmakedefine WITH_API
|
|
|
|
#cmakedefine WITH_HOOKS
|
|
|
|
#cmakedefine WITH_IO
|
|
|
|
|
|
|
|
/* OS Headers */
|
|
|
|
#cmakedefine HAS_EVENTFD
|
|
|
|
|
2018-06-25 06:00:34 +02:00
|
|
|
#cmakedefine HAS_SEMAPHORE
|
|
|
|
|
|
|
|
#cmakedefine LIBWEBSOCKETS_FOUND
|
|
|
|
#cmakedefine HDF5_FOUND
|
|
|
|
#cmakedefine PROTOBUF_FOUND
|
|
|
|
#cmakedefine LIBNL3_ROUTE_FOUND
|
|
|
|
#cmakedefine LIBCONFIG_FOUND
|
2018-07-04 17:50:26 +02:00
|
|
|
#cmakedefine IBVERBS_FOUND
|
2018-06-25 06:00:34 +02:00
|
|
|
|
2018-06-28 13:42:50 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
2018-06-29 08:37:14 +02:00
|
|
|
#endif
|