23 import "vnet/ip/ip_types.api";
24 import "vnet/fib/fib_types.api";
25 import "vnet/interface_types.api";
37 vl_api_address_t
addr;
45 vl_api_cnat_endpoint_t dst_ep;
51 vl_api_cnat_endpoint_t vip;
67 define cnat_translation_update_reply
74 autoreply define cnat_translation_del
81 define cnat_translation_details
87 define cnat_translation_dump
101 vl_api_cnat_endpoint_t
src;
102 vl_api_cnat_endpoint_t
dst;
103 vl_api_cnat_endpoint_t
new;
108 define cnat_session_details
114 define cnat_session_dump
120 autoreply define cnat_set_snat_addresses
129 define cnat_get_snat_addresses
135 define cnat_get_snat_addresses_reply
145 autoreply define cnat_add_del_snat_prefix
vl_api_address_family_t if_af
typedef cnat_endpoint_tuple
vl_api_ip6_address_t snat_ip6
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_ip_proto_t ip_proto
vl_api_cnat_translation_t translation
int cnat_session_purge(void)
Purge all the sessions.
vl_api_ip4_address_t snat_ip4
vl_api_interface_index_t sw_if_index
vl_api_cnat_session_t session
vl_api_ip4_address_t snat_ip4
vl_api_cnat_endpoint_t dst
u32 cnat_translation_update(cnat_endpoint_t *vip, ip_protocol_t proto, cnat_endpoint_tuple_t *paths, u8 flags)
create or update a translation
vl_api_cnat_translation_t translation
vl_api_interface_index_t sw_if_index
vl_api_cnat_endpoint_t src_ep