18 import "vnet/interface_types.api";
19 import "vnet/ip/ip_types.api";
40 vl_api_ip4_address_t
src;
41 vl_api_ip4_address_t
dst;
50 vl_api_ip4_address_t
src;
51 vl_api_ip4_address_t
dst;
54 vl_api_pnat_mask_t
mask;
64 vl_api_pnat_match_tuple_t
match;
68 autoendian define pnat_binding_add_reply
101 rpc pnat_bindings_get returns pnat_bindings_get_reply
102 stream pnat_bindings_details;
103 rpc pnat_interfaces_get returns pnat_interfaces_get_reply
107 define pnat_bindings_get
114 define pnat_bindings_get_reply
121 define pnat_bindings_details
128 define pnat_interfaces_get
135 define pnat_interfaces_get_reply
147 vl_api_pnat_mask_t lookup_mask[2];
155 description
"successfully rewritten";
162 description
"rewrite failed";
168 description
"packet too short for rewrite";
173 "/err/pnat-input" "pnat";
174 "/err/pnat-output" "pnat";
vl_api_pnat_attachment_point_t attachment
vl_api_pnat_match_tuple_t match
int pnat_binding_detach(u32 sw_if_index, pnat_attachment_point_t attachment, u32 binding_index)
typedef pnat_rewrite_tuple
vl_api_interface_index_t sw_if_index
vl_api_interface_index_t sw_if_index
vl_api_fib_path_type_t type
rpc pnat_interfaces_get returns pnat_interfaces_get_reply stream pnat_interfaces_details
vl_api_interface_index_t sw_if_index
vl_api_pnat_attachment_point_t attachment
int pnat_binding_del(u32 index)
int pnat_binding_add(pnat_match_tuple_t *match, pnat_rewrite_tuple_t *rewrite, u32 *index)
vl_api_pnat_rewrite_tuple_t rewrite
vl_api_pnat_rewrite_tuple_t rewrite
vl_api_pnat_match_tuple_t match
int pnat_binding_attach(u32 sw_if_index, pnat_attachment_point_t attachment, u32 binding_index)