From 0720d65c7b0cf7106742ce02a0512bf647d5e517 Mon Sep 17 00:00:00 2001 From: Maxime Peim Date: Mon, 11 Mar 2024 10:35:16 +0100 Subject: urpf: export to use it externally Type: improvement Change-Id: Ia70f16c92dfc153256db6dcdf23f5487d5a7b678 Signed-off-by: Maxime Peim --- src/plugins/urpf/urpf_dp.h | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/plugins/urpf/urpf_dp.h') diff --git a/src/plugins/urpf/urpf_dp.h b/src/plugins/urpf/urpf_dp.h index bca41863d41..b17fed7e04b 100644 --- a/src/plugins/urpf/urpf_dp.h +++ b/src/plugins/urpf/urpf_dp.h @@ -53,21 +53,6 @@ * * This file contains the interface unicast source check. */ -typedef struct -{ - index_t urpf; - u32 fib_index; -} urpf_trace_t; - -static u8 * -format_urpf_trace (u8 * s, va_list * va) -{ - CLIB_UNUSED (vlib_main_t * vm) = va_arg (*va, vlib_main_t *); - CLIB_UNUSED (vlib_node_t * node) = va_arg (*va, vlib_node_t *); - urpf_trace_t *t = va_arg (*va, urpf_trace_t *); - - return format (s, "uRPF:%d fib:%d", t->urpf, t->fib_index); -} #define foreach_urpf_error \ _(DROP, "uRPF Drop") \ -- cgit 1.2.3-korg