From: John McNamara Date: Mon, 2 Nov 2015 17:45:51 +0000 (+0000) Subject: examples/l3fwd: fix option parsing X-Git-Tag: spdx-start~7852 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=6f8cfdb1b9c3a5b95b15f1899ed254bdb0036638;p=dpdk.git examples/l3fwd: fix option parsing 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 --- diff --git a/examples/l3fwd/main.c b/examples/l3fwd/main.c index 1f3e5c6666..9a7fd8c7a3 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); }