FD.io VPP  v19.08-27-gf4dcae4
Vector Packet Processing
fib_api.c File Reference
+ Include dependency graph for fib_api.c:

Go to the source code of this file.

Macros

#define vl_typedefs   /* define message structures */
 
#define vl_endianfun   /* define message structures */
 
#define vl_print(handle, ...)   vlib_cli_output (handle, __VA_ARGS__)
 
#define vl_printfun
 

Functions

int fib_api_table_id_decode (fib_protocol_t fproto, u32 table_id, u32 *fib_index)
 
int fib_api_mtable_id_decode (fib_protocol_t fproto, u32 table_id, u32 *fib_index)
 
static void fib_api_next_hop_decode (const vl_api_fib_path_t *in, ip46_address_t *out)
 
static vl_api_fib_path_nh_proto_t fib_api_path_dpo_proto_to_nh (dpo_proto_t dproto)
 
static void fib_api_next_hop_encode (const fib_route_path_t *rpath, vl_api_fib_path_t *fp)
 
static int fib_api_path_nh_proto_to_dpo (vl_api_fib_path_nh_proto_t pp, dpo_proto_t *dproto)
 
int fib_api_path_decode (vl_api_fib_path_t *in, fib_route_path_t *out)
 
void fib_api_path_encode (const fib_route_path_t *rpath, vl_api_fib_path_t *out)
 
int fib_api_route_add_del (u8 is_add, u8 is_multipath, u32 fib_index, const fib_prefix_t *prefix, fib_entry_flag_t entry_flags, fib_route_path_t *rpaths)
 Adding routes from the API. More...
 
u8format_vl_api_fib_path (u8 *s, va_list *args)
 
fib_protocol_t fib_proto_from_api_address_family (int af)
 
int fib_proto_to_api_address_family (fib_protocol_t fproto)
 

Macro Definition Documentation

#define vl_endianfun   /* define message structures */

Definition at line 31 of file fib_api.c.

#define vl_print (   handle,
  ... 
)    vlib_cli_output (handle, __VA_ARGS__)

Definition at line 36 of file fib_api.c.

#define vl_printfun

Definition at line 37 of file fib_api.c.

#define vl_typedefs   /* define message structures */

Definition at line 27 of file fib_api.c.

Function Documentation

int fib_api_mtable_id_decode ( fib_protocol_t  fproto,
u32  table_id,
u32 fib_index 
)

Definition at line 59 of file fib_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void fib_api_next_hop_decode ( const vl_api_fib_path_t *  in,
ip46_address_t *  out 
)
static

Definition at line 74 of file fib_api.c.

+ Here is the caller graph for this function:

static void fib_api_next_hop_encode ( const fib_route_path_t rpath,
vl_api_fib_path_t *  fp 
)
static

Definition at line 107 of file fib_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int fib_api_path_decode ( vl_api_fib_path_t *  in,
fib_route_path_t out 
)

Definition at line 150 of file fib_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static vl_api_fib_path_nh_proto_t fib_api_path_dpo_proto_to_nh ( dpo_proto_t  dproto)
static

Definition at line 84 of file fib_api.c.

+ Here is the caller graph for this function:

void fib_api_path_encode ( const fib_route_path_t rpath,
vl_api_fib_path_t *  out 
)

Definition at line 358 of file fib_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int fib_api_path_nh_proto_to_dpo ( vl_api_fib_path_nh_proto_t  pp,
dpo_proto_t dproto 
)
static

Definition at line 123 of file fib_api.c.

+ Here is the caller graph for this function:

int fib_api_route_add_del ( u8  is_add,
u8  is_multipath,
u32  fib_index,
const fib_prefix_t prefix,
fib_entry_flag_t  entry_flags,
fib_route_path_t rpaths 
)

Adding routes from the API.

Definition at line 455 of file fib_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int fib_api_table_id_decode ( fib_protocol_t  fproto,
u32  table_id,
u32 fib_index 
)

Definition at line 44 of file fib_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

fib_protocol_t fib_proto_from_api_address_family ( int  af)

Definition at line 536 of file fib_api.c.

+ Here is the caller graph for this function:

int fib_proto_to_api_address_family ( fib_protocol_t  fproto)

Definition at line 551 of file fib_api.c.

+ Here is the caller graph for this function:

u8* format_vl_api_fib_path ( u8 s,
va_list *  args 
)

Definition at line 505 of file fib_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: