app/dumpcap: fix selecting all interfaces

Correction in handling 'if' condition for -i parameter.

Fixes: cbb44143be74 ("app/dumpcap: add new packet capture application")

Signed-off-by: Arshdeep Kaur <arshdeep.kaur@intel.com>
Acked-by: Reshma Pattan <reshma.pattan@intel.com>
This commit is contained in:
Arshdeep Kaur 2022-09-15 01:16:09 -07:00 committed by Thomas Monjalon
parent d59fb4d1a2
commit bdd426eac9

View File

@ -242,7 +242,7 @@ static void select_interface(const char *arg)
{
uint16_t port;
if (strcmp(arg, "*"))
if (strcmp(arg, "*") == 0)
select_all_interfaces();
else if (rte_eth_dev_get_port_by_name(arg, &port) == 0)
add_interface(port, arg);