summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@ugent.be>2017-08-17 14:51:47 +0000
committerSander Vrijders <sander.vrijders@ugent.be>2017-08-17 14:51:47 +0000
commitc7cb10810c447579cb20a8bc99049baeeb8e2065 (patch)
treedf6a08516b7215dddb024ab1e44f23121d616487 /include
parent44327027e32f5853995984a5bad9869b443898ca (diff)
parentdb218bbe19b66a382df5f665981b7b16f1901bc9 (diff)
downloadouroboros-c7cb10810c447579cb20a8bc99049baeeb8e2065.tar.gz
ouroboros-c7cb10810c447579cb20a8bc99049baeeb8e2065.zip
Merged in dstaesse/ouroboros/be-llc-bpf (pull request #556)
Be llc bpf
Diffstat (limited to 'include')
-rw-r--r--include/ouroboros/config.h.in11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/ouroboros/config.h.in b/include/ouroboros/config.h.in
index b9702171..d5871624 100644
--- a/include/ouroboros/config.h.in
+++ b/include/ouroboros/config.h.in
@@ -31,6 +31,10 @@
#ifdef __FreeBSD__
#define __BSD_VISIBLE 1
#endif
+#ifdef __APPLE__
+#define _BSD_SOURCE
+#define _DARWIN_C_SOURCE
+#endif
#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@"
@@ -40,6 +44,7 @@
#cmakedefine HAVE_LIBGCRYPT
#cmakedefine HAVE_OPENSSL
#cmakedefine HAVE_NETMAP
+#cmakedefine HAVE_BPF
#define AP_MAX_FLOWS 2048
#define AP_RES_FDS 64
#define AP_MAX_FQUEUES 64
@@ -60,9 +65,13 @@
/* IPCP dynamic threadpooling */
#define IPCP_MIN_THREADS 4
#define IPCP_ADD_THREADS 16
-#define IPCP_SCHED_THREADS 8
+#define IPCP_SCHED_THREADS 2
#define IPCPD_MAX_CONNS IRMD_MAX_FLOWS
+#ifdef __APPLE__
+#define PTHREAD_COND_CLOCK CLOCK_REALTIME
+#else
#define PTHREAD_COND_CLOCK CLOCK_MONOTONIC
+#endif
#define PFT_SIZE 1 << 12
/* Timeout values */
#define IRMD_ACCEPT_TIMEOUT 100