Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nat: implement missing nat_ha_resync #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/plugins/nat/nat_ha.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down