FD.io VPP  v19.04.4-rc0-5-ge88582fac
Vector Packet Processing
map_api.c File Reference
+ Include dependency graph for map_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
 
#define vl_api_version(n, v)   static u32 api_version=(v);
 
#define REPLY_MSG_ID_BASE   mm->msg_id_base
 
#define foreach_map_plugin_api_msg
 
#define vl_msg_name_crc_list
 

Functions

static void vl_api_map_add_domain_t_handler (vl_api_map_add_domain_t *mp)
 
static void vl_api_map_del_domain_t_handler (vl_api_map_del_domain_t *mp)
 
static void vl_api_map_add_del_rule_t_handler (vl_api_map_add_del_rule_t *mp)
 
static void vl_api_map_domain_dump_t_handler (vl_api_map_domain_dump_t *mp)
 
static void vl_api_map_rule_dump_t_handler (vl_api_map_rule_dump_t *mp)
 
static void vl_api_map_summary_stats_t_handler (vl_api_map_summary_stats_t *mp)
 
int map_param_set_fragmentation (bool inner, bool ignore_df)
 
static void vl_api_map_param_set_fragmentation_t_handler (vl_api_map_param_set_fragmentation_t *mp)
 
int map_param_set_icmp (ip4_address_t *icmp_src_address)
 
static void vl_api_map_param_set_icmp_t_handler (vl_api_map_param_set_icmp_t *mp)
 
int map_param_set_icmp6 (u8 enable_unreachable)
 
static void vl_api_map_param_set_icmp6_t_handler (vl_api_map_param_set_icmp6_t *mp)
 
static void vl_api_map_param_add_del_pre_resolve_t_handler (vl_api_map_param_add_del_pre_resolve_t *mp)
 
int map_param_set_reassembly (bool is_ipv6, u16 lifetime_ms, u16 pool_size, u32 buffers, f64 ht_ratio, u32 *reass, u32 *packets)
 
static void vl_api_map_param_set_reassembly_t_handler (vl_api_map_param_set_reassembly_t *mp)
 
int map_param_set_security_check (bool enable, bool fragments)
 
static void vl_api_map_param_set_security_check_t_handler (vl_api_map_param_set_security_check_t *mp)
 
int map_param_set_traffic_class (bool copy, u8 tc)
 
static void vl_api_map_param_set_traffic_class_t_handler (vl_api_map_param_set_traffic_class_t *mp)
 
int map_param_set_tcp (u16 tcp_mss)
 
static void vl_api_map_param_set_tcp_t_handler (vl_api_map_param_set_tcp_t *mp)
 
static void vl_api_map_param_get_t_handler (vl_api_map_param_get_t *mp)
 
int map_if_enable_disable (bool is_enable, u32 sw_if_index, bool is_translation)
 
static void vl_api_map_if_enable_disable_t_handler (vl_api_map_if_enable_disable_t *mp)
 
static void setup_message_id_table (map_main_t *mm, api_main_t *am)
 
clib_error_tmap_plugin_api_hookup (vlib_main_t *vm)
 

Macro Definition Documentation

◆ foreach_map_plugin_api_msg

#define foreach_map_plugin_api_msg
Value:
_(MAP_ADD_DOMAIN, map_add_domain) \
_(MAP_DEL_DOMAIN, map_del_domain) \
_(MAP_ADD_DEL_RULE, map_add_del_rule) \
_(MAP_DOMAIN_DUMP, map_domain_dump) \
_(MAP_RULE_DUMP, map_rule_dump) \
_(MAP_IF_ENABLE_DISABLE, map_if_enable_disable) \
_(MAP_SUMMARY_STATS, map_summary_stats) \
_(MAP_PARAM_SET_FRAGMENTATION, map_param_set_fragmentation) \
_(MAP_PARAM_SET_ICMP, map_param_set_icmp) \
_(MAP_PARAM_SET_ICMP6, map_param_set_icmp6) \
_(MAP_PARAM_ADD_DEL_PRE_RESOLVE, map_param_add_del_pre_resolve) \
_(MAP_PARAM_SET_REASSEMBLY, map_param_set_reassembly) \
_(MAP_PARAM_SET_SECURITY_CHECK, map_param_set_security_check) \
_(MAP_PARAM_SET_TRAFFIC_CLASS, map_param_set_traffic_class) \
_(MAP_PARAM_SET_TCP, map_param_set_tcp) \
_(MAP_PARAM_GET, map_param_get)
int map_param_set_traffic_class(bool copy, u8 tc)
Definition: map_api.c:529
int map_param_set_security_check(bool enable, bool fragments)
Definition: map_api.c:504
int map_param_set_icmp6(u8 enable_unreachable)
Definition: map_api.c:333
int map_if_enable_disable(bool is_enable, u32 sw_if_index, bool is_translation)
Definition: map_api.c:632
int map_param_set_reassembly(bool is_ipv6, u16 lifetime_ms, u16 pool_size, u32 buffers, f64 ht_ratio, u32 *reass, u32 *packets)
Definition: map_api.c:371
int map_param_set_tcp(u16 tcp_mss)
Definition: map_api.c:554
int map_param_set_icmp(ip4_address_t *icmp_src_address)
Definition: map_api.c:306
int map_param_set_fragmentation(bool inner, bool ignore_df)
Definition: map_api.c:281

Definition at line 698 of file map_api.c.

◆ REPLY_MSG_ID_BASE

#define REPLY_MSG_ID_BASE   mm->msg_id_base

Definition at line 45 of file map_api.c.

◆ vl_api_version

#define vl_api_version (   n,
 
)    static u32 api_version=(v);

Definition at line 41 of file map_api.c.

◆ vl_endianfun

#define vl_endianfun   /* define message structures */

Definition at line 30 of file map_api.c.

◆ vl_msg_name_crc_list

#define vl_msg_name_crc_list

Definition at line 716 of file map_api.c.

◆ vl_print

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

Definition at line 35 of file map_api.c.

◆ vl_printfun

#define vl_printfun

Definition at line 36 of file map_api.c.

◆ vl_typedefs

#define vl_typedefs   /* define message structures */

Definition at line 26 of file map_api.c.

Function Documentation

◆ map_if_enable_disable()

int map_if_enable_disable ( bool  is_enable,
u32  sw_if_index,
bool  is_translation 
)

Definition at line 632 of file map_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ map_param_set_fragmentation()

int map_param_set_fragmentation ( bool  inner,
bool  ignore_df 
)

Definition at line 281 of file map_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ map_param_set_icmp()

int map_param_set_icmp ( ip4_address_t icmp_src_address)

Definition at line 306 of file map_api.c.

+ Here is the caller graph for this function:

◆ map_param_set_icmp6()

int map_param_set_icmp6 ( u8  enable_unreachable)

Definition at line 333 of file map_api.c.

+ Here is the caller graph for this function:

◆ map_param_set_reassembly()

int map_param_set_reassembly ( bool  is_ipv6,
u16  lifetime_ms,
u16  pool_size,
u32  buffers,
f64  ht_ratio,
u32 reass,
u32 packets 
)

Definition at line 371 of file map_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ map_param_set_security_check()

int map_param_set_security_check ( bool  enable,
bool  fragments 
)

Definition at line 504 of file map_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ map_param_set_tcp()

int map_param_set_tcp ( u16  tcp_mss)

Definition at line 554 of file map_api.c.

+ Here is the caller graph for this function:

◆ map_param_set_traffic_class()

int map_param_set_traffic_class ( bool  copy,
u8  tc 
)

Definition at line 529 of file map_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ map_plugin_api_hookup()

clib_error_t* map_plugin_api_hookup ( vlib_main_t vm)

Definition at line 731 of file map_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setup_message_id_table()

static void setup_message_id_table ( map_main_t mm,
api_main_t am 
)
static

Definition at line 721 of file map_api.c.

+ Here is the caller graph for this function:

◆ vl_api_map_add_del_rule_t_handler()

static void vl_api_map_add_del_rule_t_handler ( vl_api_map_add_del_rule_t mp)
static

Definition at line 100 of file map_api.c.

+ Here is the call graph for this function:

◆ vl_api_map_add_domain_t_handler()

static void vl_api_map_add_domain_t_handler ( vl_api_map_add_domain_t mp)
static

Definition at line 49 of file map_api.c.

+ Here is the call graph for this function:

◆ vl_api_map_del_domain_t_handler()

static void vl_api_map_del_domain_t_handler ( vl_api_map_del_domain_t mp)
static

Definition at line 88 of file map_api.c.

+ Here is the call graph for this function:

◆ vl_api_map_domain_dump_t_handler()

static void vl_api_map_domain_dump_t_handler ( vl_api_map_domain_dump_t mp)
static

Definition at line 114 of file map_api.c.

+ Here is the call graph for this function:

◆ vl_api_map_if_enable_disable_t_handler()

static void vl_api_map_if_enable_disable_t_handler ( vl_api_map_if_enable_disable_t mp)
static

Definition at line 681 of file map_api.c.

+ Here is the call graph for this function:

◆ vl_api_map_param_add_del_pre_resolve_t_handler()

static void vl_api_map_param_add_del_pre_resolve_t_handler ( vl_api_map_param_add_del_pre_resolve_t mp)
static

Definition at line 357 of file map_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vl_api_map_param_get_t_handler()

static void vl_api_map_param_get_t_handler ( vl_api_map_param_get_t mp)
static

Definition at line 577 of file map_api.c.

+ Here is the call graph for this function:

◆ vl_api_map_param_set_fragmentation_t_handler()

static void vl_api_map_param_set_fragmentation_t_handler ( vl_api_map_param_set_fragmentation_t mp)
static

Definition at line 293 of file map_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vl_api_map_param_set_icmp6_t_handler()

static void vl_api_map_param_set_icmp6_t_handler ( vl_api_map_param_set_icmp6_t mp)
static

Definition at line 343 of file map_api.c.

+ Here is the call graph for this function:

◆ vl_api_map_param_set_icmp_t_handler()

static void vl_api_map_param_set_icmp_t_handler ( vl_api_map_param_set_icmp_t mp)
static

Definition at line 320 of file map_api.c.

+ Here is the call graph for this function:

◆ vl_api_map_param_set_reassembly_t_handler()

static void vl_api_map_param_set_reassembly_t_handler ( vl_api_map_param_set_reassembly_t mp)
static

Definition at line 477 of file map_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vl_api_map_param_set_security_check_t_handler()

static void vl_api_map_param_set_security_check_t_handler ( vl_api_map_param_set_security_check_t mp)
static

Definition at line 516 of file map_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vl_api_map_param_set_tcp_t_handler()

static void vl_api_map_param_set_tcp_t_handler ( vl_api_map_param_set_tcp_t mp)
static

Definition at line 565 of file map_api.c.

+ Here is the call graph for this function:

◆ vl_api_map_param_set_traffic_class_t_handler()

static void vl_api_map_param_set_traffic_class_t_handler ( vl_api_map_param_set_traffic_class_t mp)
static

Definition at line 541 of file map_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vl_api_map_rule_dump_t_handler()

static void vl_api_map_rule_dump_t_handler ( vl_api_map_rule_dump_t mp)
static

Definition at line 172 of file map_api.c.

+ Here is the call graph for this function:

◆ vl_api_map_summary_stats_t_handler()

static void vl_api_map_summary_stats_t_handler ( vl_api_map_summary_stats_t mp)
static

Definition at line 213 of file map_api.c.

+ Here is the call graph for this function: