diff options
author | Nardi Ivan <nardi.ivan@gmail.com> | 2020-06-10 18:56:44 +0200 |
---|---|---|
committer | Nardi Ivan <nardi.ivan@gmail.com> | 2020-06-28 12:05:12 +0200 |
commit | 2cdf7ce80635071dddc45ac2851ae353ae462ba7 (patch) | |
tree | 052044398eb91065695c1557ee09ebae601e3fae /example/ndpiReader.c | |
parent | 2effa57d8af2c2a459bcc6cb9f077aa247ea4f20 (diff) |
Fix startup when DPDK is enabled
Fixes:a58c838c4
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r-- | example/ndpiReader.c | 6 |
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], ","); |