From patchwork Mon Nov 2 17:45:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John McNamara X-Patchwork-Id: 8544 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 9E4ED8E7F; Mon, 2 Nov 2015 18:45:57 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 0922F8E6C for ; Mon, 2 Nov 2015 18:45:55 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP; 02 Nov 2015 09:45:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,234,1444719600"; d="scan'208";a="592653333" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by FMSMGA003.fm.intel.com with ESMTP; 02 Nov 2015 09:45:53 -0800 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id tA2Hjq78029956; Mon, 2 Nov 2015 17:45:52 GMT Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id tA2Hjqpn013275; Mon, 2 Nov 2015 17:45:52 GMT Received: (from jmcnam2@localhost) by sivswdev02.ir.intel.com with id tA2Hjq4Q013271; Mon, 2 Nov 2015 17:45:52 GMT From: John McNamara To: dev@dpdk.org Date: Mon, 2 Nov 2015 17:45:51 +0000 Message-Id: <1446486351-13238-1-git-send-email-john.mcnamara@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dpdk-dev] [PATCH] examples/l3fwd: fix eth-dest commandline strncmp size X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Fix minor, and non critical, copy and paste error in strncmp() of eth-dest commandline argument. Fixes: bd785f6f6791 ("examples/l3fwd: make destination mac address configurable") Signed-off-by: John McNamara Acked-by: Andrey Chilikin --- examples/l3fwd/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/l3fwd/main.c b/examples/l3fwd/main.c index 1f3e5c6..9a7fd8c 100644 --- a/examples/l3fwd/main.c +++ b/examples/l3fwd/main.c @@ -2074,7 +2074,7 @@ parse_args(int argc, char **argv) } if (!strncmp(lgopts[option_index].name, CMD_LINE_OPT_ETH_DEST, - sizeof(CMD_LINE_OPT_CONFIG))) { + sizeof(CMD_LINE_OPT_ETH_DEST))) { parse_eth_dest(optarg); }