diff options
author | Maxime Peim <mpeim@cisco.com> | 2024-03-11 10:35:16 +0100 |
---|---|---|
committer | Beno�t Ganne <bganne@cisco.com> | 2024-05-28 11:56:46 +0000 |
commit | 0720d65c7b0cf7106742ce02a0512bf647d5e517 (patch) | |
tree | c957bef8c00558424240fbea51893de41361220a /src/plugins/urpf/urpf.h | |
parent | 7624083c27125d1d0abd11738f7dceb2990969ed (diff) |
urpf: export to use it externally
Type: improvement
Change-Id: Ia70f16c92dfc153256db6dcdf23f5487d5a7b678
Signed-off-by: Maxime Peim <mpeim@cisco.com>
Diffstat (limited to 'src/plugins/urpf/urpf.h')
-rw-r--r-- | src/plugins/urpf/urpf.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/plugins/urpf/urpf.h b/src/plugins/urpf/urpf.h index 6983a2b440c..a40a25df16b 100644 --- a/src/plugins/urpf/urpf.h +++ b/src/plugins/urpf/urpf.h @@ -32,7 +32,15 @@ typedef enum urpf_mode_t_ #define URPF_N_MODES (URPF_MODE_STRICT+1) -extern u8 *format_urpf_mode (u8 * s, va_list * a); +typedef struct +{ + index_t urpf; + u32 fib_index; +} urpf_trace_t; + +u8 *format_urpf_trace (u8 *s, va_list *va); +u8 *format_urpf_mode (u8 *s, va_list *a); +uword unformat_urpf_mode (unformat_input_t *input, va_list *args); typedef struct { @@ -43,8 +51,8 @@ typedef struct extern urpf_data_t *urpf_cfgs[N_AF][VLIB_N_DIR]; -extern int urpf_update (urpf_mode_t mode, u32 sw_if_index, - ip_address_family_t af, vlib_dir_t dir, u32 table_id); +int urpf_update (urpf_mode_t mode, u32 sw_if_index, ip_address_family_t af, + vlib_dir_t dir, u32 table_id); #endif |