* [conntrack-tools PATCH] src: add log message when resync is requested by other node
@ 2016-12-01 9:59 Arturo Borrero Gonzalez
2016-12-01 12:13 ` Pablo Neira Ayuso
0 siblings, 1 reply; 2+ messages in thread
From: Arturo Borrero Gonzalez @ 2016-12-01 9:59 UTC (permalink / raw)
To: netfilter-devel
If a resync is requested with 'conntrackd -n', a log message is printed
in the caller node, but no message is printed in the other.
Print a message so tracking the behaviour of a cluster is a bit easier.
Signed-off-by: Arturo Borrero Gonzalez <arturo@debian.org>
---
src/sync-ftfw.c | 2 +-
src/sync-notrack.c | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/sync-ftfw.c b/src/sync-ftfw.c
index 1bc2d9f..aa6838a 100644
--- a/src/sync-ftfw.c
+++ b/src/sync-ftfw.c
@@ -351,7 +351,7 @@ static int digest_msg(const struct nethdr *net)
return MSG_CTL;
} else if (IS_RESYNC(net)) {
- dp("RESYNC ALL\n");
+ dlog(LOG_NOTICE, "resync requested by other node");
cache_iterate(STATE(mode)->internal->ct.data, NULL,
do_cache_to_tx);
cache_iterate(STATE(mode)->internal->exp.data, NULL,
diff --git a/src/sync-notrack.c b/src/sync-notrack.c
index c810bbb..7ade3a7 100644
--- a/src/sync-notrack.c
+++ b/src/sync-notrack.c
@@ -149,6 +149,7 @@ static int digest_msg(const struct nethdr *net)
return MSG_DATA;
if (IS_RESYNC(net)) {
+ dlog(LOG_NOTICE, "resync requested by other node");
if (CONFIG(sync).internal_cache_disable) {
kernel_resync();
} else {
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-12-01 12:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-01 9:59 [conntrack-tools PATCH] src: add log message when resync is requested by other node Arturo Borrero Gonzalez
2016-12-01 12:13 ` Pablo Neira Ayuso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).