Fix startup when DPDK is enabled
Fixes:a58c838c4
This commit is contained in:
@@ -843,9 +843,6 @@ static void parseOptions(int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(_pcap_file[0] == NULL)
|
|
||||||
help(0);
|
|
||||||
|
|
||||||
if(csv_fp)
|
if(csv_fp)
|
||||||
printCSVHeader();
|
printCSVHeader();
|
||||||
|
|
||||||
@@ -855,6 +852,9 @@ static void parseOptions(int argc, char **argv) {
|
|||||||
extcap_capture();
|
extcap_capture();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(_pcap_file[0] == NULL)
|
||||||
|
help(0);
|
||||||
|
|
||||||
if(strchr(_pcap_file[0], ',')) { /* multiple ingress interfaces */
|
if(strchr(_pcap_file[0], ',')) { /* multiple ingress interfaces */
|
||||||
num_threads = 0; /* setting number of threads = number of interfaces */
|
num_threads = 0; /* setting number of threads = number of interfaces */
|
||||||
__pcap_file = strtok(_pcap_file[0], ",");
|
__pcap_file = strtok(_pcap_file[0], ",");
|
||||||
|
|||||||
Reference in New Issue
Block a user