FD.io VPP
v19.04.4-rc0-5-ge88582fac
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | fib_entry_delegate_t_ |
A Delagate is a means to implmenet the Delagation design pattern; the extension of an objects functionality through the composition of, and delgation to, other objects. More... | |
Macros | |
#define | FOR_EACH_DELEGATE_CHAIN(_entry, _fdt, _fed, _body) |
#define | FOR_EACH_DELEGATE(_entry, _fdt, _fed, _body) |
Typedefs | |
typedef enum fib_entry_delegate_type_t_ | fib_entry_delegate_type_t |
Delegate types. More... | |
typedef enum fib_bfd_state_t_ | fib_bfd_state_t |
Distillation of the BFD session states into a go/no-go for using the associated tracked FIB entry. More... | |
typedef struct fib_entry_delegate_t_ | fib_entry_delegate_t |
A Delagate is a means to implmenet the Delagation design pattern; the extension of an objects functionality through the composition of, and delgation to, other objects. More... | |
Enumerations | |
enum | fib_entry_delegate_type_t_ { FIB_ENTRY_DELEGATE_CHAIN_UNICAST_IP4 = FIB_FORW_CHAIN_TYPE_UNICAST_IP4, FIB_ENTRY_DELEGATE_CHAIN_UNICAST_IP6 = FIB_FORW_CHAIN_TYPE_UNICAST_IP6, FIB_ENTRY_DELEGATE_CHAIN_MPLS_EOS = FIB_FORW_CHAIN_TYPE_MPLS_EOS, FIB_ENTRY_DELEGATE_CHAIN_MPLS_NON_EOS = FIB_FORW_CHAIN_TYPE_MPLS_NON_EOS, FIB_ENTRY_DELEGATE_CHAIN_ETHERNET = FIB_FORW_CHAIN_TYPE_ETHERNET, FIB_ENTRY_DELEGATE_CHAIN_NSH = FIB_FORW_CHAIN_TYPE_NSH, FIB_ENTRY_DELEGATE_COVERED, FIB_ENTRY_DELEGATE_BFD, FIB_ENTRY_DELEGATE_ATTACHED_IMPORT, FIB_ENTRY_DELEGATE_ATTACHED_EXPORT } |
Delegate types. More... | |
enum | fib_bfd_state_t_ { FIB_BFD_STATE_UP, FIB_BFD_STATE_DOWN } |
Distillation of the BFD session states into a go/no-go for using the associated tracked FIB entry. More... | |
Functions | |
void | fib_entry_delegate_remove (struct fib_entry_t_ *fib_entry, fib_entry_delegate_type_t type) |
fib_entry_delegate_t * | fib_entry_delegate_find_or_add (struct fib_entry_t_ *fib_entry, fib_entry_delegate_type_t fdt) |
fib_entry_delegate_t * | fib_entry_delegate_get (const struct fib_entry_t_ *fib_entry, fib_entry_delegate_type_t type) |
fib_forward_chain_type_t | fib_entry_delegate_type_to_chain_type (fib_entry_delegate_type_t type) |
fib_entry_delegate_type_t | fib_entry_chain_type_to_delegate_type (fib_forward_chain_type_t type) |
u8 * | format_fib_entry_deletegate (u8 *s, va_list *args) |
#define FOR_EACH_DELEGATE | ( | _entry, | |
_fdt, | |||
_fed, | |||
_body | |||
) |
Definition at line 68 of file fib_entry_delegate.h.
#define FOR_EACH_DELEGATE_CHAIN | ( | _entry, | |
_fdt, | |||
_fed, | |||
_body | |||
) |
Definition at line 56 of file fib_entry_delegate.h.
typedef enum fib_bfd_state_t_ fib_bfd_state_t |
Distillation of the BFD session states into a go/no-go for using the associated tracked FIB entry.
typedef struct fib_entry_delegate_t_ fib_entry_delegate_t |
A Delagate is a means to implmenet the Delagation design pattern; the extension of an objects functionality through the composition of, and delgation to, other objects.
These 'other' objects are delegates. Delagates are thus attached to other FIB objects to extend their functionality.
typedef enum fib_entry_delegate_type_t_ fib_entry_delegate_type_t |
Delegate types.
enum fib_bfd_state_t_ |
Distillation of the BFD session states into a go/no-go for using the associated tracked FIB entry.
Enumerator | |
---|---|
FIB_BFD_STATE_UP | |
FIB_BFD_STATE_DOWN |
Definition at line 85 of file fib_entry_delegate.h.
Delegate types.
Definition at line 24 of file fib_entry_delegate.h.
fib_entry_delegate_type_t fib_entry_chain_type_to_delegate_type | ( | fib_forward_chain_type_t | type | ) |
fib_entry_delegate_t* fib_entry_delegate_find_or_add | ( | struct fib_entry_t_ * | fib_entry, |
fib_entry_delegate_type_t | fdt | ||
) |
Definition at line 93 of file fib_entry_delegate.c.
fib_entry_delegate_t* fib_entry_delegate_get | ( | const struct fib_entry_t_ * | fib_entry, |
fib_entry_delegate_type_t | type | ||
) |
void fib_entry_delegate_remove | ( | struct fib_entry_t_ * | fib_entry, |
fib_entry_delegate_type_t | type | ||
) |
Definition at line 55 of file fib_entry_delegate.c.
fib_forward_chain_type_t fib_entry_delegate_type_to_chain_type | ( | fib_entry_delegate_type_t | type | ) |