summaryrefslogtreecommitdiffstats
path: root/src/plugins/nat/nat_ha.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/nat/nat_ha.h')
-rw-r--r--src/plugins/nat/nat_ha.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/plugins/nat/nat_ha.h b/src/plugins/nat/nat_ha.h
index ec627899a3f..92fc3373673 100644
--- a/src/plugins/nat/nat_ha.h
+++ b/src/plugins/nat/nat_ha.h
@@ -39,10 +39,15 @@ typedef void (*nat_ha_sref_cb_t) (ip4_address_t * out_addr, u16 out_port,
u64 total_bytes, u32 thread_index);
/**
+ * @brief Enable NAT HA, set callbacks
+ */
+void nat_ha_enable (nat_ha_sadd_cb_t sadd_cb, nat_ha_sdel_cb_t sdel_cb,
+ nat_ha_sref_cb_t sref_cb);
+
+/**
* @brief Initialize NAT HA
*/
-void nat_ha_init (vlib_main_t * vm, nat_ha_sadd_cb_t sadd_cb,
- nat_ha_sdel_cb_t sdel_cb, nat_ha_sref_cb_t sref_cb);
+void nat_ha_init (vlib_main_t * vm, u32 num_workers, u32 num_threads);
/**
* @brief Set HA listener (local settings)