FD.io VPP  v19.01.3-6-g70449b9b9
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:498
int map_param_set_security_check(bool enable, bool fragments)
Definition: map_api.c:473
int map_param_set_icmp6(u8 enable_unreachable)
Definition: map_api.c:302
int map_if_enable_disable(bool is_enable, u32 sw_if_index, bool is_translation)
Definition: map_api.c:601
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:340
int map_param_set_tcp(u16 tcp_mss)
Definition: map_api.c:523
int map_param_set_icmp(ip4_address_t *icmp_src_address)
Definition: map_api.c:275
int map_param_set_fragmentation(bool inner, bool ignore_df)
Definition: map_api.c:250

Definition at line 667 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 685 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 601 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 250 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 275 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 302 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 340 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 473 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 523 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 498 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 700 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 690 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 87 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 75 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 101 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 650 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 326 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 546 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 262 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 312 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 289 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 446 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 485 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 534 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 510 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 141 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 182 of file map_api.c.

+ Here is the call graph for this function: