diff options
author | Matus Fabian <matfabia@cisco.com> | 2018-02-05 02:57:47 -0800 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2018-02-05 16:22:29 +0000 |
commit | 1c986cb3b8a4398a04f82ff2c78838497ef8389b (patch) | |
tree | 1dabf8502f2a0e898901c7fa36cea68b869c32a2 /src/plugins/nat/nat64.h | |
parent | 5e150a06a8b291edc9427e740d441ac652f6e705 (diff) |
NAT64: Run nat64-expire-worker-walk only when NAT64 is configured (VPP-1162)
Change-Id: Ic5e8d74bf5ac84cce5661de44778c89541c67636
Signed-off-by: Matus Fabian <matfabia@cisco.com>
(cherry picked from commit e71eb5922a293eca36dbd323970741daaca3c5c7)
Diffstat (limited to 'src/plugins/nat/nat64.h')
-rw-r--r-- | src/plugins/nat/nat64.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/plugins/nat/nat64.h b/src/plugins/nat/nat64.h index d9d3d768e70..e2334a5ac6f 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; |