app/test: fix crash of LPM test
authorOlivier Matz <olivier.matz@6wind.com>
Wed, 9 Nov 2016 13:08:26 +0000 (14:08 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sat, 12 Nov 2016 21:27:09 +0000 (22:27 +0100)
commitdd030a0ee807471257f7e72a1673eacd4d7f0963
treeff4adbd3e1a106230ee8fe66da41cefdedd1b4df
parentc9c7758dde16d9801349178d1c514a157b0738e2
app/test: fix crash of LPM test

The test recently added accesses to lpm->tbl8[ip >> 8] with is much
larger than the size of the table, causing a crash of the test
application.

Fix this typo by replacing tbl8 by tbl24.

Fixes: 231fa88ed522 ("app/test: verify LPM tbl8 recycle")

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Wei Dai <wei.dai@intel.com>
app/test/test_lpm.c