From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D85F2A0032; Mon, 12 Sep 2022 14:53:36 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B0E06400D4; Mon, 12 Sep 2022 14:53:36 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 5E8CF40042 for ; Mon, 12 Sep 2022 14:53:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662987215; x=1694523215; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=ctQxUwZ/dUm+exh2Ly1ftgdmZ+UcDSovSiFd525fgh8=; b=IXRggD08SU/wQtUHxb/+Cpzthqlv9CbdanbtBe+8+tW4DwBJ7/rSkZ6p AqFm+NUAYIbYBY/p0DDCSHLcZ5FkXNHF/dwFQu3f30VV+m5OxsrSzZpli 6Jb0CbkQNUGYYZPqVDZkpAK9sxfAUqdY0/ZUbZyh2XypY1+jvTJpbKeeO LKaNdN1QZ+NWxL79eSzNWWx17caXuGIMv9TjQI1P96KuuXW+bpDzEeSI/ K99wOWFM89gibIbgmvTQwyN17IZimH4CdH4kY55OeFp9Aa8ddMkM0xyNP UHxhm7p+PPxBeC843hlgMDaO/sKopYnOamrAQx5dyHYBGdRbi2jVm/Nxk w==; X-IronPort-AV: E=McAfee;i="6500,9779,10468"; a="384152152" X-IronPort-AV: E=Sophos;i="5.93,310,1654585200"; d="scan'208";a="384152152" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Sep 2022 05:53:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,310,1654585200"; d="scan'208";a="611750446" Received: from unknown (HELO skx-5gnr-sd6.localdomain) ([10.233.180.92]) by orsmga007.jf.intel.com with ESMTP; 12 Sep 2022 05:53:33 -0700 From: Arshdeep Kaur To: dev@dpdk.org Subject: [PATCH v2] dumpcap: fix interface parameter check. Date: Mon, 12 Sep 2022 05:53:28 -0700 Message-Id: <20220912125328.236907-1-arshdeep.kaur@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220829084956.288858-1-arshdeep.kaur@intel.com> References: <20220829084956.288858-1-arshdeep.kaur@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Fixes: cbb44143be74 ("app/dumpcap: add new packet capture application") Signed-off-by: Arshdeep Kaur --- app/dumpcap/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/dumpcap/main.c b/app/dumpcap/main.c index a6041d4ff4..8972c45a71 100644 --- a/app/dumpcap/main.c +++ b/app/dumpcap/main.c @@ -240,7 +240,7 @@ static void select_interface(const char *arg) { uint16_t port; - if (strcmp(arg, "*")) + if (!strcmp(arg, "*")) select_all_interfaces(); else if (rte_eth_dev_get_port_by_name(arg, &port) == 0) add_interface(port, arg); -- 2.37.1