diff --git a/src/plugins/nat/nat_ha.c b/src/plugins/nat/nat_ha.c index 8bf07759f682..db2c9e2a35a2 100644 --- a/src/plugins/nat/nat_ha.c +++ b/src/plugins/nat/nat_ha.c @@ -685,6 +685,18 @@ nat_ha_flush (u8 is_resync) nat_ha_event_add (0, 1, 0, is_resync); } +int +nat_ha_resync (u32 client_index, u32 pid, + nat_ha_resync_event_cb_t event_callback) +{ + nat_ha_main_t *ha = &nat_ha_main; + + ha->client_index = client_index; + ha->pid = pid; + ha->event_callback = event_callback; + return ha->in_resync; +} + void nat_ha_sadd (ip4_address_t * in_addr, u16 in_port, ip4_address_t * out_addr, u16 out_port, ip4_address_t * eh_addr, u16 eh_port,