X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Fnat%2Fnat64.h;h=addba7a370476ca0f45833ad6aa9ea458d087c5b;hb=039cbfe254be998f7311bc4638bb262b44efac19;hp=d9d3d768e70e2596afc12f9ba1ad16e0025d112e;hpb=a3a6ec63d34c98e19b18530c165d09ac61389225;p=vpp.git diff --git a/src/plugins/nat/nat64.h b/src/plugins/nat/nat64.h index d9d3d768e70..addba7a3704 100644 --- a/src/plugins/nat/nat64.h +++ b/src/plugins/nat/nat64.h @@ -39,6 +39,11 @@ typedef enum #undef _ } nat64_tcp_ses_state_t; +enum +{ + NAT64_CLEANER_RESCHEDULE = 1, +} nat64_cleaner_process_event_e; + typedef struct { ip6_address_t prefix; @@ -99,6 +104,11 @@ typedef struct u32 tcp_est_timeout; u32 tcp_incoming_syn_timeout; + /* Total count of interfaces enabled */ + u32 total_enabled_count; + /* The process node which orcherstrates the cleanup */ + u32 nat64_expire_walk_node_index; + ip4_main_t *ip4_main; snat_main_t *sm; } nat64_main_t; @@ -367,9 +377,6 @@ u32 nat64_get_worker_in2out (ip6_address_t * addr); */ u32 nat64_get_worker_out2in (ip4_header_t * ip); -#define u8_ptr_add(ptr, index) (((u8 *)ptr) + index) -#define u16_net_add(u, val) clib_host_to_net_u16(clib_net_to_host_u16(u) + (val)) - #endif /* __included_nat64_h__ */ /*