|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
16 #ifndef included_pnat_h
17 #define included_pnat_h
23 #define PNAT_FLOW_HASH_BUCKETS 256
26 #include <pnat/pnat.api_types.h>
vl_api_pnat_match_tuple_t pnat_match_tuple_t
u32 pnat_flow_lookup(u32 sw_if_index, pnat_attachment_point_t attachment, pnat_match_tuple_t *match)
pnat_rewrite_tuple_t rewrite
vl_api_pnat_mask_t pnat_mask_t
u32 * interface_by_sw_if_index
vl_api_pnat_rewrite_tuple_t pnat_rewrite_tuple_t
@ PNAT_INSTR_DESTINATION_PORT
pnat_rewrite_tuple_t rewrite
int pnat_binding_del(u32 binding_index)
pnat_translation_t * translations
pnat_interface_t * pnat_interface_by_sw_if_index(u32 sw_if_index)
int pnat_binding_add(pnat_match_tuple_t *match, pnat_rewrite_tuple_t *rewrite, u32 *binding_index)
int pnat_binding_attach(u32 sw_if_index, pnat_attachment_point_t attachment, u32 binding_index)
pnat_instructions_t instructions
vl_api_ip_proto_t protocol
clib_bihash_16_8_t flowhash
int pnat_binding_detach(u32 sw_if_index, pnat_attachment_point_t attachment, u32 binding_index)
@ PNAT_ATTACHMENT_POINT_MAX
@ PNAT_INSTR_DESTINATION_ADDRESS
static void pnat_calc_key(u32 sw_if_index, pnat_attachment_point_t attachment, ip4_address_t src, ip4_address_t dst, u8 protocol, u16 sport, u16 dport, pnat_mask_fast_t mask, clib_bihash_kv_16_8_t *kv)
pnat_interface_t * interfaces
@ PNAT_INSTR_SOURCE_ADDRESS
vl_api_interface_index_t sw_if_index
vl_api_pnat_attachment_point_t pnat_attachment_point_t