23 import "vnet/ip/ip_types.api";
24 import "vnet/fib/fib_types.api";
33 vl_api_address_t
addr;
39 vl_api_cnat_endpoint_t dst_ep;
45 vl_api_cnat_endpoint_t vip;
61 define cnat_translation_update_reply
68 autoreply define cnat_translation_del
75 define cnat_translation_details
81 define cnat_translation_dump
95 vl_api_cnat_endpoint_t
src;
96 vl_api_cnat_endpoint_t
dst;
97 vl_api_cnat_endpoint_t
new;
102 define cnat_session_details
108 define cnat_session_dump
114 autoreply define cnat_set_snat_addresses
122 autoreply define cnat_add_del_snat_prefix
typedef cnat_endpoint_tuple
vl_api_ip6_address_t snat_ip6
vl_api_cnat_endpoint_tuple_t paths[n_paths]
vl_api_ip_proto_t ip_proto
vl_api_cnat_translation_t translation
int cnat_session_purge(void)
Purge all the sessions.
u32 cnat_translation_update(const cnat_endpoint_t *vip, ip_protocol_t proto, const cnat_endpoint_tuple_t *paths, u8 flags)
create or update a translation
vl_api_cnat_session_t session
vl_api_ip4_address_t snat_ip4
vl_api_cnat_endpoint_t dst
vl_api_cnat_translation_t translation
vl_api_cnat_endpoint_t src_ep