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;
52 ntohl (mp->
entry.nh_table_id), &nh);
85 mp->
entry.nh_table_id =
119 #include <vnet/teib/teib.api.c> fib_protocol_t fp_proto
protocol type
int teib_entry_del(u32 sw_if_index, const ip46_address_t *peer)
teib_entry_t * teib_entry_get(index_t tei)
void teib_walk(teib_walk_cb_t fn, void *ctx)
static walk_rc_t vl_api_teib_send_one(index_t nei, void *arg)
static void vl_api_send_msg(vl_api_registration_t *rp, u8 *elem)
u32 index_t
A Data-Path Object is an object that represents actions that are applied to packets are they are swit...
void * vl_msg_api_alloc_zero(int nbytes)
static void vl_api_teib_entry_add_del_t_handler(vl_api_teib_entry_add_del_t *mp)
const ip46_address_t * teib_entry_get_peer(const teib_entry_t *te)
u32 teib_entry_get_fib_index(const teib_entry_t *te)
enum walk_rc_t_ walk_rc_t
Walk return code.
struct vl_api_teib_send_t_ vl_api_teib_send_t
Aggregate type for a prefix.
ip46_type_t ip_address_decode(const vl_api_address_t *in, ip46_address_t *out)
Decode/Encode for struct/union types.
ip46_address_t fp_addr
The address type is not deriveable from the fp_addr member.
u32 teib_entry_get_sw_if_index(const teib_entry_t *te)
accessors for the opaque struct
static void vl_api_teib_dump_t_handler(vl_api_teib_dump_t *mp)
VLIB_API_INIT_FUNCTION(teib_api_hookup)
vl_api_teib_entry_t entry
#define REPLY_MSG_ID_BASE
static clib_error_t * teib_api_hookup(vlib_main_t *vm)
An API client registration, only in vpp/vlib.
#define BAD_SW_IF_INDEX_LABEL
vl_api_registration_t * reg
static vl_api_registration_t * vl_api_client_index_to_registration(u32 index)
static u32 teib_base_msg_id
u32 fib_table_get_table_id(u32 fib_index, fib_protocol_t proto)
Get the Table-ID of the FIB from protocol and index.
int teib_entry_add(u32 sw_if_index, const ip46_address_t *peer, u32 nh_table_id, const ip46_address_t *nh)
Create a new TEIB entry.
vl_api_teib_entry_t entry
void ip_address_encode(const ip46_address_t *in, ip46_type_t type, vl_api_address_t *out)
static void setup_message_id_table(snat_main_t *sm, api_main_t *am)
#define VALIDATE_SW_IF_INDEX(mp)
const fib_prefix_t * teib_entry_get_nh(const teib_entry_t *te)