[dpdk-dev] examples/l3fwd: fix eth-dest commandline strncmp size

Message ID 1446486351-13238-1-git-send-email-john.mcnamara@intel.com (mailing list archive)
State Accepted, archived
Headers

Commit Message

John McNamara Nov. 2, 2015, 5:45 p.m. UTC
  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 <john.mcnamara@intel.com>
---
 examples/l3fwd/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Chilikin, Andrey Nov. 12, 2015, 10:26 a.m. UTC | #1
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of John McNamara
> Sent: Monday, November 2, 2015 5:46 PM
> To: dev@dpdk.org
> Subject: [dpdk-dev] [PATCH] examples/l3fwd: fix eth-dest commandline
> strncmp size
> 
> 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 <john.mcnamara@intel.com>
Acked-by: Andrey Chilikin <andrey.chilikin@intel.com>
  
Thomas Monjalon Dec. 7, 2015, 2:08 a.m. UTC | #2
> > 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 <john.mcnamara@intel.com>
> Acked-by: Andrey Chilikin <andrey.chilikin@intel.com>

Applied, thanks
  

Patch

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);
 			}