diff options
author | Arturo Borrero Gonzalez <arturo@debian.org> | 2017-05-09 09:41:15 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-05-15 12:39:11 +0200 |
commit | 3d9849649ec617b45a57a50c93244c13ea8244e0 (patch) | |
tree | 97e7bd7ff155d6b89798076482be13c0277e4a76 /src/resync.c | |
parent | d31baccc493ec6484bfcb51d6bce78ff8c3ddc64 (diff) |
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 <arturo@debian.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/resync.c')
-rw-r--r-- | src/resync.c | 8 |
1 files changed, 8 insertions, 0 deletions
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(); +} |