|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
23 import "vnet/ip/ip_types.api";
24 import "vnet/fib/fib_types.api";
25 import "vnet/interface_types.api";
51 vl_api_address_t
addr;
59 vl_api_cnat_endpoint_t dst_ep;
66 vl_api_cnat_endpoint_t vip;
83 define cnat_translation_update_reply
90 autoreply define cnat_translation_del
97 define cnat_translation_details
103 define cnat_translation_dump
117 vl_api_cnat_endpoint_t
src;
118 vl_api_cnat_endpoint_t
dst;
119 vl_api_cnat_endpoint_t
new;
125 define cnat_session_details
131 define cnat_session_dump
137 autoreply define cnat_set_snat_addresses
146 define cnat_get_snat_addresses
152 define cnat_get_snat_addresses_reply
162 autoreply define cnat_snat_policy_add_del_exclude_pfx
183 vl_api_cnat_snat_policy_table_t
table;
vl_api_interface_index_t sw_if_index
vl_api_ip4_address_t snat_ip4
vl_api_address_family_t if_af
vl_api_cnat_snat_policy_table_t table
vl_api_cnat_session_t session
int cnat_session_purge(void)
Purge all the sessions.
@ CNAT_TRANSLATION_ALLOC_PORT
int cnat_snat_policy_add_del_if(u32 sw_if_index, u8 is_add, cnat_snat_interface_map_type_t table)
u32 cnat_translation_update(cnat_endpoint_t *vip, ip_protocol_t proto, cnat_endpoint_tuple_t *paths, u8 flags, cnat_lb_type_t lb_type)
create or update a translation
vl_api_cnat_lb_type_t lb_type
vl_api_cnat_endpoint_t src_ep
vl_api_cnat_snat_policies_t policy
vl_api_interface_index_t sw_if_index
cnat_endpoint_tuple_flags
int cnat_set_snat_policy(cnat_snat_policy_type_t policy)
vl_api_cnat_translation_t translation
vl_api_ip_proto_t ip_proto
vl_api_cnat_translation_t translation
typedef cnat_endpoint_tuple
vl_api_cnat_endpoint_tuple_t paths[n_paths]
vl_api_interface_index_t sw_if_index
vl_api_ip6_address_t snat_ip6
vl_api_ip6_address_t snat_ip6
vl_api_interface_index_t sw_if_index
vl_api_ip4_address_t snat_ip4
vl_api_cnat_endpoint_t dst