diff options
-rw-r--r-- | configure.seed | 4 | ||||
-rw-r--r-- | example/ndpiReader.c | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/configure.seed b/configure.seed index edb22bae9..936b15900 100644 --- a/configure.seed +++ b/configure.seed @@ -167,8 +167,8 @@ case "$host" in AC_CHECK_LIB([nl], [nl_handle_alloc], [PCAP_LIB="$PCAP_LIB -lnl"]) # The dlopen() function is in libdl on GLIBC-based systems # and in the C library for *BSD systems - AC_CHECK_LIB([dl], [dlopen, dlsym], [DL_LIB="-ldl"],[AC_CHECK_LIB([c], - [dlopen, dlsym], [DL_LIB="-lc"], + AC_CHECK_LIB([dl], [dlopen], [DL_LIB="-ldl"],[AC_CHECK_LIB([c], + [dlopen], [DL_LIB="-lc"], [AC_MSG_ERROR([unable to find the dlopen(), dlsym() functions]) ]) ]) elif test "${with_only_libndpi+set}" != set; then : AC_CHECK_LIB([pcap], [pcap_open_live], [PCAP_LIB="-lpcap"]) diff --git a/example/ndpiReader.c b/example/ndpiReader.c index ab6e0f391..4015f9b8d 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -1053,12 +1053,14 @@ static void parseOptions(int argc, char **argv) { } #ifdef linux +#ifndef USE_DPDK for(thread_id = 0; thread_id < num_threads; thread_id++) core_affinity[thread_id] = -1; if(num_cores > 1 && bind_mask != NULL) { char *core_id = strtok(bind_mask, ":"); thread_id = 0; + while(core_id != NULL && thread_id < num_threads) { core_affinity[thread_id++] = atoi(core_id) % num_cores; core_id = strtok(NULL, ":"); @@ -1066,6 +1068,7 @@ static void parseOptions(int argc, char **argv) { } #endif #endif +#endif } /* ********************************** */ |