examples/l3fwd: rework long options parsing
authorOlivier Matz <olivier.matz@6wind.com>
Tue, 22 Nov 2016 13:52:15 +0000 (14:52 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 17 Jan 2017 17:10:50 +0000 (18:10 +0100)
commit88617471b8c58f624dce4953c043b568d6db8952
treeb49377050ca1d695d406a6ba96f81e662e9d6f4a
parent6876790da137cabc1a1b70ba4df8a5494473f647
examples/l3fwd: rework long options parsing

Avoid the use of several strncpy() since getopt is able to
map a long option with an id, which can be matched in the
same switch/case than short options.

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