examples/l2fwd: rework long options parsing
authorOlivier Matz <olivier.matz@6wind.com>
Tue, 22 Nov 2016 13:52:16 +0000 (14:52 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 17 Jan 2017 17:10:43 +0000 (18:10 +0100)
commit6876790da137cabc1a1b70ba4df8a5494473f647
treeb1325a6a4f001efccc9d0f25ada145b7386bd7ec
parentf2b9988926ee9c3fe3d739dc8be7419ec84deda5
examples/l2fwd: rework long options parsing

Do the same than in l3fwd to avoid strcmp() for long options.

For l2fwd, there is no long option that take advantage of this new
mechanism as --mac-updating and --no-mac-updating are directly setting a
flag without needing an entry in the switch/case.

So this patch just prepares the framework in case a new long option is
added in the future.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
examples/l2fwd/main.c