diff options
author | Pavel Kotucek <pavel.kotucek@pantheon.tech> | 2018-11-27 09:59:44 +0100 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2018-11-29 08:49:17 +0000 |
commit | 609e1210c6339376dd6cdd0f79195b436d5614d2 (patch) | |
tree | 5483c93c35261230750e67e5277108b8b081f65b /src/vnet/ip/ip_punt_drop.h | |
parent | dfe4cf48ae344b882f0fd53d08b6917ef4391530 (diff) |
VPP-1507: Added binary api to dump configured ip_punt_redirect
Change-Id: I790f7785e183cc9aaffd5b593617c4e12a32e20d
Signed-off-by: Pavel Kotucek <pavel.kotucek@pantheon.tech>
Diffstat (limited to 'src/vnet/ip/ip_punt_drop.h')
-rw-r--r-- | src/vnet/ip/ip_punt_drop.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/vnet/ip/ip_punt_drop.h b/src/vnet/ip/ip_punt_drop.h index 7ba65e1a6e4..ccf88e593cf 100644 --- a/src/vnet/ip/ip_punt_drop.h +++ b/src/vnet/ip/ip_punt_drop.h @@ -245,6 +245,18 @@ typedef struct ip4_punt_redirect_trace_t_ u32 next; } ip_punt_redirect_trace_t; +typedef struct ip_punt_redirect_detail_t_ +{ + /** + * the RX interface + */ + u32 rx_sw_if_index; + /** + * IP punt redirect configuration + */ + ip_punt_redirect_rx_t punt_redirect; +} ip_punt_redirect_detail_t; + /** * Add a punt redirect entry */ @@ -258,6 +270,9 @@ extern u8 *format_ip_punt_redirect (u8 * s, va_list * args); extern u8 *format_ip_punt_redirect_trace (u8 * s, va_list * args); +extern ip_punt_redirect_detail_t *ip4_punt_redirect_entries (u32 sw_if_index); +extern ip_punt_redirect_detail_t *ip6_punt_redirect_entries (u32 sw_if_index); + always_inline u32 ip_punt_redirect_tx_via_adj (vlib_buffer_t * b0, adj_index_t ai) { |