Add sw_if_index to the ip_neighbor_details_t response. 25/9325/3
authorJon Loeliger <jdl@netgate.com>
Wed, 8 Nov 2017 19:07:39 +0000 (13:07 -0600)
committerChris Luke <chris_luke@comcast.com>
Fri, 10 Nov 2017 16:17:58 +0000 (16:17 +0000)
commitaf8dfbf6d8d3b5430a437e98e18f95998e9559ca
tree2938bc56ba2eabe9281d9bb5c1da47011f475cad
parentdbd44561538514f6cfce324419042f2ce69fe214
Add sw_if_index to the ip_neighbor_details_t response.

When a DUMP with sw_if_index == ~0 is used to get all Neighbor
entries for all interfaces, it is unclear in the details to
which interface the neighbor belongs.

Clear that up by returning the associated sw_if_index as well.

Change-Id: Ib584a57138f7faceffed64d7c1854f7af92e0e42
Signed-off-by: Jon Loeliger <jdl@netgate.com>
src/vnet/ip/ip.api
src/vnet/ip/ip_api.c