FD.io VPP
v18.07-34-g55fbdb9
Vector Packet Processing
|
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...
Data Fields | |
fib_node_index_t | fd_entry_index |
The FIB entry object to which the delagate is attached. More... | |
fib_entry_delegate_type_t | fd_type |
The delagate type. More... | |
union { | |
dpo_id_t fd_dpo | |
Valid for the forwarding chain delegates. More... | |
fib_node_index_t fd_index | |
Valid for the attached import cases. More... | |
fib_node_list_t fd_list | |
For the cover tracking. More... | |
fib_bfd_state_t fd_bfd_state | |
BFD state. More... | |
}; | |
A union of data for the different delegate types These delegates are stored in a sparse vector on the entry, so they must all be of the same size. More... | |
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.
Definition at line 97 of file fib_entry_delegate.h.
union { ... } |
A union of data for the different delegate types These delegates are stored in a sparse vector on the entry, so they must all be of the same size.
We could use indirection here for all types, i.e. store an index, that's ok for large delegates, like the attached export but for the chain delegates it's excessive
fib_bfd_state_t fib_entry_delegate_t_::fd_bfd_state |
BFD state.
Definition at line 136 of file fib_entry_delegate.h.
dpo_id_t fib_entry_delegate_t_::fd_dpo |
Valid for the forwarding chain delegates.
The LB that is built.
Definition at line 121 of file fib_entry_delegate.h.
fib_node_index_t fib_entry_delegate_t_::fd_entry_index |
The FIB entry object to which the delagate is attached.
Definition at line 102 of file fib_entry_delegate.h.
fib_node_index_t fib_entry_delegate_t_::fd_index |
Valid for the attached import cases.
An index of the importer/exporter
Definition at line 126 of file fib_entry_delegate.h.
fib_node_list_t fib_entry_delegate_t_::fd_list |
fib_entry_delegate_type_t fib_entry_delegate_t_::fd_type |
The delagate type.
Definition at line 107 of file fib_entry_delegate.h.