Go to the source code of this file.
|
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_del (u32 binding_index) |
|
int | pnat_binding_attach (u32 sw_if_index, pnat_attachment_point_t attachment, u32 binding_index) |
|
int | pnat_binding_detach (u32 sw_if_index, pnat_attachment_point_t attachment, u32 binding_index) |
|
u32 | pnat_flow_lookup (u32 sw_if_index, pnat_attachment_point_t attachment, pnat_match_tuple_t *match) |
|
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_FLOW_HASH_BUCKETS
#define PNAT_FLOW_HASH_BUCKETS 256 |
◆ pnat_attachment_point_t
◆ pnat_mask_t
◆ pnat_match_tuple_t
◆ pnat_rewrite_tuple_t
◆ pnat_instructions_t
Enumerator |
---|
PNAT_INSTR_NONE | |
PNAT_INSTR_SOURCE_ADDRESS | |
PNAT_INSTR_SOURCE_PORT | |
PNAT_INSTR_DESTINATION_ADDRESS | |
PNAT_INSTR_DESTINATION_PORT | |
PNAT_INSTR_COPY_BYTE | |
PNAT_INSTR_CLEAR_BYTE | |
Definition at line 33 of file pnat.h.
◆ pnat_binding_add()
◆ pnat_binding_attach()
◆ pnat_binding_del()
int pnat_binding_del |
( |
u32 |
binding_index | ) |
|
◆ pnat_binding_detach()
◆ pnat_calc_key()
◆ pnat_flow_lookup()
◆ pnat_interface_by_sw_if_index()
◆ pnat_main