summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/CMakeLists.txt2
-rw-r--r--src/lib/dev.c5
2 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt
index a6dc00c6..42164fac 100644
--- a/src/lib/CMakeLists.txt
+++ b/src/lib/CMakeLists.txt
@@ -176,7 +176,7 @@ set(SHM_RDRB_MULTI_BLOCK true CACHE BOOL
"Packet buffer multiblock packet support")
set(SHM_RBUFF_LOCKLESS 0 CACHE BOOL
"Enable shared memory lockless rbuff support")
-set(QOS_DISABLE_CRC 0 CACHE BOOL
+set(QOS_DISABLE_CRC TRUE CACHE BOOL
"Ignores ber setting on all QoS cubes")
set(SOURCE_FILES_DEV
diff --git a/src/lib/dev.c b/src/lib/dev.c
index 2a5c3f83..6dbb925e 100644
--- a/src/lib/dev.c
+++ b/src/lib/dev.c
@@ -345,7 +345,10 @@ static void init(int argc,
prog = argv[1];
ai.pid = getpid();
-
+#ifdef HAVE_LIBGCRYPT
+ if (!gcry_check_version(GCRYPT_VERSION))
+ goto fail_fds;
+#endif
ai.fds = bmp_create(PROG_MAX_FLOWS - PROG_RES_FDS, PROG_RES_FDS);
if (ai.fds == NULL)
goto fail_fds;