ip-neighbor: fix ip6_ra_cmd 13/26213/2
authorDave Barach <dave@barachs.net>
Wed, 26 Feb 2020 13:02:58 +0000 (08:02 -0500)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Mon, 30 Mar 2020 13:56:32 +0000 (13:56 +0000)
commita42f9a54231526f0cba42d590917a51eab6529e1
tree87f97c89a39d3dbd185a8a196f5364d523ece392
parent247bbe2cfa517d3b0498e3416ea5fe6855b6549e
ip-neighbor: fix ip6_ra_cmd

The option parsing loop had "break" statements included in each
'if (unformat (line_input, "this-option ...") option_values=xxx;'
statement.

Result: the code would silently ignore all but the first
option. Probably broken forever, not easy to spot because the code
looks OK even though it's badly broken.

Type: fix

Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: I667bee85b4ca654b53fb3af421f957957ed0f0f8
(cherry picked from commit 7249b90ab21c20138907e692dcb6032aea9e2f0f)
src/vnet/ip6-nd/ip6_ra.c