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:
parent
d59fb4d1a2
commit
bdd426eac9
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user