From 3d9849649ec617b45a57a50c93244c13ea8244e0 Mon Sep 17 00:00:00 2001 From: Arturo Borrero Gonzalez Date: Tue, 9 May 2017 09:41:15 +0200 Subject: conntrackd: request resync at startup If a node goes to live, ask the other for resync at startup. This has to be done usually by hand, but I guess is an operation common enough to add some bits to ease people life here. Signed-off-by: Arturo Borrero Gonzalez Signed-off-by: Pablo Neira Ayuso --- src/resync.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/resync.c') diff --git a/src/resync.c b/src/resync.c index dbb2b6f..5394245 100644 --- a/src/resync.c +++ b/src/resync.c @@ -38,3 +38,11 @@ void resync_send(int (*do_cache_to_tx)(void *data1, void *data2)) cache_iterate(STATE(mode)->internal->exp.data, NULL, do_cache_to_tx); } + +void resync_at_startup(void) +{ + if (CONFIG(startup_resync) == 0) + return; + + resync_req(); +} -- cgit v1.2.3