DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] examples/l3fwd: fix eth-dest commandline strncmp size
@ 2015-11-02 17:45 John McNamara
  2015-11-12 10:26 ` Chilikin, Andrey
  0 siblings, 1 reply; 3+ messages in thread
From: John McNamara @ 2015-11-02 17:45 UTC (permalink / raw)
  To: 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 <john.mcnamara@intel.com>
---
 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);
 			}
 
-- 
1.8.1.4

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-12-07  2:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-02 17:45 [dpdk-dev] [PATCH] examples/l3fwd: fix eth-dest commandline strncmp size John McNamara
2015-11-12 10:26 ` Chilikin, Andrey
2015-12-07  2:08   ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).