From 0053de63ec4bf8b9bce7817f1b61c9791baf6c26 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Tue, 22 May 2018 08:40:52 -0700 Subject: ARP proxy dumps Change-Id: I8335ebf266becf2f42bb3f28a17dfed8d9b08f97 Signed-off-by: Neale Ranns --- src/vnet/interface_funcs.h | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) (limited to 'src/vnet/interface_funcs.h') diff --git a/src/vnet/interface_funcs.h b/src/vnet/interface_funcs.h index 3f910f9d13f..e1568e33b5d 100644 --- a/src/vnet/interface_funcs.h +++ b/src/vnet/interface_funcs.h @@ -147,11 +147,20 @@ vnet_clear_sw_interface_tag (vnet_main_t * vnm, u32 sw_if_index) } } +/** + * Walk return code + */ +typedef enum walk_rc_t_ +{ + WALK_STOP, + WALK_CONTINUE, +} walk_rc_t; + /** * Call back walk type for walking SW indices on a HW interface */ -typedef void (*vnet_hw_sw_interface_walk_t) (vnet_main_t * vnm, - u32 sw_if_index, void *ctx); +typedef walk_rc_t (*vnet_hw_sw_interface_walk_t) (vnet_main_t * vnm, + u32 sw_if_index, void *ctx); /** * @brief @@ -162,6 +171,20 @@ void vnet_hw_interface_walk_sw (vnet_main_t * vnm, u32 hw_if_index, vnet_hw_sw_interface_walk_t fn, void *ctx); +/** + * Call back walk type for walking SW indices on a HW interface + */ +typedef walk_rc_t (*vnet_sw_interface_walk_t) (vnet_main_t * vnm, + vnet_sw_interface_t * si, + void *ctx); + +/** + * @brief + * Walk all the SW interfaces in the system. + */ +void vnet_sw_interface_walk (vnet_main_t * vnm, + vnet_sw_interface_walk_t fn, void *ctx); + /* Register a hardware interface instance. */ u32 vnet_register_interface (vnet_main_t * vnm, u32 dev_class_index, -- cgit 1.2.3-korg