|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
30 #include <vnet/teib/teib.api_enum.h>
31 #include <vnet/teib/teib.api_types.h>
34 #define REPLY_MSG_ID_BASE teib_base_msg_id
41 vl_api_teib_entry_add_del_reply_t *rmp;
84 mp->
entry.nh_table_id =
118 #include <vnet/teib/teib.api.c>
#define VALIDATE_SW_IF_INDEX(mp)
static vl_api_registration_t * vl_api_client_index_to_registration(u32 index)
static void vl_api_teib_dump_t_handler(vl_api_teib_dump_t *mp)
u32 fib_table_get_table_id(u32 fib_index, fib_protocol_t proto)
Get the Table-ID of the FIB from protocol and index.
static void vl_api_send_msg(vl_api_registration_t *rp, u8 *elem)
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
void * vl_msg_api_alloc_zero(int nbytes)
int teib_entry_add(u32 sw_if_index, const ip_address_t *peer, u32 nh_table_id, const ip_address_t *nh)
Create a new TEIB entry.
const fib_prefix_t * teib_entry_get_nh(const teib_entry_t *te)
teib_entry_t * teib_entry_get(index_t tei)
void ip_address_encode2(const ip_address_t *in, vl_api_address_t *out)
static void setup_message_id_table(api_main_t *am)
static walk_rc_t vl_api_teib_send_one(index_t nei, void *arg)
struct vl_api_teib_send_t_ vl_api_teib_send_t
An API client registration, only in vpp/vlib.
u32 index_t
A Data-Path Object is an object that represents actions that are applied to packets are they are swit...
static void vl_api_teib_entry_add_del_t_handler(vl_api_teib_entry_add_del_t *mp)
static clib_error_t * teib_api_hookup(vlib_main_t *vm)
#define REPLY_MSG_ID_BASE
vl_api_teib_entry_t entry
u32 teib_entry_get_fib_index(const teib_entry_t *te)
vl_api_registration_t * reg
ip46_address_t fp_addr
The address type is not deriveable from the fp_addr member.
VLIB_API_INIT_FUNCTION(teib_api_hookup)
void ip_address_decode2(const vl_api_address_t *in, ip_address_t *out)
#define BAD_SW_IF_INDEX_LABEL
u32 teib_entry_get_sw_if_index(const teib_entry_t *te)
accessors for the opaque struct
const ip_address_t * teib_entry_get_peer(const teib_entry_t *te)
vl_api_teib_entry_t entry
fib_protocol_t fp_proto
protocol type
int teib_entry_del(u32 sw_if_index, const ip_address_t *peer)
void ip_address_encode(const ip46_address_t *in, ip46_type_t type, vl_api_address_t *out)
void teib_walk(teib_walk_cb_t fn, void *ctx)
enum walk_rc_t_ walk_rc_t
Walk return code.
Aggregate type for a prefix.
static u32 teib_base_msg_id