X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Fnat%2Fnat64.h;h=a95ded2289328310261272cda36c089bf0232460;hb=8a10c7351b35ab8405c2a9b030dba74a4da28f30;hp=b9251402a0c525cd683a00a432ba7059d39ec366;hpb=eb978969ad48669e60b7d96904fcf0108f54cb79;p=vpp.git diff --git a/src/plugins/nat/nat64.h b/src/plugins/nat/nat64.h index b9251402a0c..a95ded22893 100644 --- a/src/plugins/nat/nat64.h +++ b/src/plugins/nat/nat64.h @@ -39,7 +39,7 @@ typedef enum #undef _ } nat64_tcp_ses_state_t; -enum +typedef enum { NAT64_CLEANER_RESCHEDULE = 1, } nat64_cleaner_process_event_e; @@ -89,8 +89,6 @@ typedef struct /** Pool of static BIB entries to be added/deleted in worker threads */ nat64_static_bib_to_update_t *static_bibs; - u32 error_node_index; - /** config parameters */ u32 bib_buckets; u32 bib_memory_size; @@ -112,6 +110,14 @@ typedef struct vlib_simple_counter_main_t total_bibs; vlib_simple_counter_main_t total_sessions; + /** node index **/ + u32 error_node_index; + + u32 in2out_node_index; + u32 in2out_slowpath_node_index; + + u32 out2in_node_index; + ip4_main_t *ip4_main; snat_main_t *sm; } nat64_main_t; @@ -372,7 +378,7 @@ u32 nat64_get_worker_in2out (ip6_address_t * addr); * * @returns worker thread index. */ -u32 nat64_get_worker_out2in (ip4_header_t * ip); +u32 nat64_get_worker_out2in (vlib_buffer_t * b, ip4_header_t * ip); #endif /* __included_nat64_h__ */