FD.io VPP  v19.08.3-2-gbabecb413
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:509
int map_param_set_security_check(bool enable, bool fragments)
Definition: map_api.c:484
int map_param_set_icmp6(u8 enable_unreachable)
Definition: map_api.c:313
int map_if_enable_disable(bool is_enable, u32 sw_if_index, bool is_translation)
Definition: map_api.c:610
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:351
int map_param_set_tcp(u16 tcp_mss)
Definition: map_api.c:534
int map_param_set_icmp(ip4_address_t *icmp_src_address)
Definition: map_api.c:286
int map_param_set_fragmentation(bool inner, bool ignore_df)
Definition: map_api.c:261

Definition at line 676 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 694 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 610 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 261 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 286 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 313 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 351 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 484 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 534 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 509 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 709 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 699 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 89 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 77 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 103 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 659 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 337 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 557 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 273 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 323 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 300 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 457 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 496 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 545 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 521 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 152 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 193 of file map_api.c.

+ Here is the call graph for this function: