summaryrefslogtreecommitdiffstats
path: root/src/sync-ftfw.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2008-12-21 19:39:39 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2008-12-21 19:39:39 +0100
commit7b3f57d5007dd2cf4127c2c3a9a7cd0f64d5d6e9 (patch)
treeaf5056d1a50fc62e640508c735114c3c4157ab0e /src/sync-ftfw.c
parentb666e6ebbd0c0ae7967ff8167790166858544297 (diff)
src: add network statistics via `-s network'
This patch adds networks statistics that you can check via `conntrackd -s network'. This information is useful for trouble-shooting. This patch replaces several log messages that can be triggered in runtime. The idea behind this patch is to avoid log message flooding under errors. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/sync-ftfw.c')
-rw-r--r--src/sync-ftfw.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/sync-ftfw.c b/src/sync-ftfw.c
index 4758710..44e8f2f 100644
--- a/src/sync-ftfw.c
+++ b/src/sync-ftfw.c
@@ -441,8 +441,6 @@ static int ftfw_recv(const struct nethdr *net)
case SEQ_BEFORE:
/* we don't accept delayed packets */
- dlog(LOG_WARNING, "Received seq=%u before expected seq=%u",
- net->seq, exp_seq);
ret = MSG_DROP;
break;
@@ -521,7 +519,7 @@ static int tx_queue_xmit(void *data1, const void *data2)
} else if (IS_ALIVE(net)) {
nethdr_set_ctl(net);
} else {
- dlog(LOG_ERR, "sending unknown control message?");
+ STATE_SYNC(error).msg_snd_malformed++;
return 0;
}
HDR_HOST2NETWORK(net);