diff options
author | Jon Loeliger <jdl@netgate.com> | 2017-11-08 13:07:39 -0600 |
---|---|---|
committer | Chris Luke <chris_luke@comcast.com> | 2017-11-10 16:17:58 +0000 |
commit | af8dfbf6d8d3b5430a437e98e18f95998e9559ca (patch) | |
tree | 2938bc56ba2eabe9281d9bb5c1da47011f475cad /src/vnet/ip/ip.api | |
parent | dbd44561538514f6cfce324419042f2ce69fe214 (diff) |
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>
Diffstat (limited to 'src/vnet/ip/ip.api')
-rw-r--r-- | src/vnet/ip/ip.api | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vnet/ip/ip.api b/src/vnet/ip/ip.api index e9c9f55a6f6..9398ad5afde 100644 --- a/src/vnet/ip/ip.api +++ b/src/vnet/ip/ip.api @@ -127,7 +127,7 @@ manual_endian manual_print define ip6_fib_details /** \brief Dump IP neighboors @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request - @param sw_if_index - the interface to dump neighboors + @param sw_if_index - the interface to dump neighboors, ~0 == all @param is_ipv6 - [1|0] to indicate if address family is ipv[6|4] */ define ip_neighbor_dump @@ -140,11 +140,13 @@ define ip_neighbor_dump /** \brief IP neighboors dump response @param context - sender context which was passed in the request + @param sw_if_index - The interface used to reach the neighbor @param is_static - [1|0] to indicate if neighbor is statically configured @param is_ipv6 - [1|0] to indicate if address family is ipv[6|4] */ define ip_neighbor_details { u32 context; + u32 sw_if_index; u8 is_static; u8 is_ipv6; u8 mac_address[6]; |