Put address in top bytes for the nexthop in vl_api_fib_path_t (VPP-532) 59/3859/2
authorSteven <sluong@cisco.com>
Wed, 16 Nov 2016 21:26:27 +0000 (13:26 -0800)
committerNeale Ranns <nranns@cisco.com>
Thu, 17 Nov 2016 14:46:26 +0000 (14:46 +0000)
commit5858a82e761b5782ee09b29fa2365cbcfae56fda
treec8104123e5361ecc2885027dbc3ddd79891a66ba
parent6b9c6df746f3d007b3021044b67a3fc1462d1b35
Put address in top bytes for the nexthop in vl_api_fib_path_t (VPP-532)

VPP-500 added the API for the fib dump capability. However, it puts the address of the
nexthop in the low bytes while the top bytes are padded with 0's if the address is ipv4.
The address field is defined as 16 bytes to accommodate both ipv4 and ipv6.
This fix is to correct the issue and put the address of the nexthop in the top bytes.

Change-Id: I429dec662e32040b186dfc323801ef49b76a42a3
Signed-off-by: Steven <sluong@cisco.com>
vpp-api-test/vat/api_format.c
vpp/vpp-api/api.c