|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
39 #ifndef __FIB_URPF_LIST_H__
40 #define __FIB_URPF_LIST_H__
fib_urpf_list_flag_t furpf_flags
flags
#define pool_elt_at_index(p, i)
Returns pointer to element at given index.
static int fib_urpf_check_size(index_t ui)
Data-Plane function to check the size of an uRPF list, (i.e.
index_t fib_urpf_list_alloc_and_lock(void)
enum fib_urpf_list_flag_t_ fib_urpf_list_flag_t
A unicast RPF list.
u32 furpf_locks
uRPF lists are shared amongst many entries so we require a locking mechanism.
void fib_urpf_list_lock(index_t urpf)
void fib_urpf_list_show_mem(void)
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
fib_urpf_list_t * fib_urpf_list_pool
pool of all fib_urpf_list
void fib_urpf_list_bake(index_t urpf)
Convert the uRPF list from the itf set obtained during the walk to a unique list.
u32 index_t
A Data-Path Object is an object that represents actions that are applied to packets are they are swit...
void fib_urpf_list_append(index_t urpf, adj_index_t adj)
Append another interface to the list.
struct fib_urpf_list_t_ fib_urpf_list_t
u8 * format_fib_urpf_list(u8 *s, va_list *ap)
#define vec_foreach(var, vec)
Vector iterator.
static fib_urpf_list_t * fib_urpf_list_get(index_t index)
@ FIB_URPF_LIST_BAKED
Set to indicated that the uRPF list has already been baked.
u32 adj_index_t
An index for adjacencies.
void fib_urpf_list_unlock(index_t urpf)
adj_index_t * furpf_itfs
The list of interfaces that comprise the allowed accepting interfaces.
fib_urpf_list_flag_t_
A unicast RPF list.
void fib_urpf_list_combine(index_t urpf1, index_t urpf2)
Combine to interface lists.
vl_api_interface_index_t sw_if_index
static int fib_urpf_check(index_t ui, u32 sw_if_index)
Data-Plane function to check an input interface against an uRPF list.