From 6f8cfdb1b9c3a5b95b15f1899ed254bdb0036638 Mon Sep 17 00:00:00 2001 From: John McNamara Date: Mon, 2 Nov 2015 17:45:51 +0000 Subject: [PATCH] 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 --- 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 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); } -- 2.20.1