aboutsummaryrefslogtreecommitdiff
path: root/example/ndpiReader.c
diff options
context:
space:
mode:
authorNardi Ivan <nardi.ivan@gmail.com>2020-06-10 18:56:44 +0200
committerNardi Ivan <nardi.ivan@gmail.com>2020-06-28 12:05:12 +0200
commit2cdf7ce80635071dddc45ac2851ae353ae462ba7 (patch)
tree052044398eb91065695c1557ee09ebae601e3fae /example/ndpiReader.c
parent2effa57d8af2c2a459bcc6cb9f077aa247ea4f20 (diff)
Fix startup when DPDK is enabled
Fixes:a58c838c4
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r--example/ndpiReader.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c
index 05dcf9524..ba2df3234 100644
--- a/example/ndpiReader.c
+++ b/example/ndpiReader.c
@@ -843,9 +843,6 @@ static void parseOptions(int argc, char **argv) {
}
}
- if(_pcap_file[0] == NULL)
- help(0);
-
if(csv_fp)
printCSVHeader();
@@ -855,6 +852,9 @@ static void parseOptions(int argc, char **argv) {
extcap_capture();
}
+ if(_pcap_file[0] == NULL)
+ help(0);
+
if(strchr(_pcap_file[0], ',')) { /* multiple ingress interfaces */
num_threads = 0; /* setting number of threads = number of interfaces */
__pcap_file = strtok(_pcap_file[0], ",");