summaryrefslogtreecommitdiffstats
path: root/src/stats-mode.c
diff options
context:
space:
mode:
author/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>2007-06-19 17:00:44 +0000
committer/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>2007-06-19 17:00:44 +0000
commit3f3a6701978df8ca16ebb5988eb7a46771deb964 (patch)
tree9a031367cd1b4322d193a85f44b15fbc645d4002 /src/stats-mode.c
parente6f0851b184123ebf04df45e2f29a59f0cb827eb (diff)
- more cleanups and code refactorization
- remove several debug calls - create a child to dispatch dump requests: this will help to simplify the current locking schema. Later.
Diffstat (limited to 'src/stats-mode.c')
-rw-r--r--src/stats-mode.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/stats-mode.c b/src/stats-mode.c
index f65fbdb..92794cd 100644
--- a/src/stats-mode.c
+++ b/src/stats-mode.c
@@ -142,9 +142,11 @@ static void event_new_stats(struct nf_conntrack *ct, struct nlmsghdr *nlh)
if (cache_add(STATE_STATS(cache), ct)) {
debug_ct(ct, "cache new");
} else {
- dlog(STATE(log), "can't add to cache cache: "
- "%s\n", strerror(errno));
- debug_ct(ct, "can't add");
+ if (errno != EEXIST) {
+ dlog(STATE(log), "can't add to cache cache: "
+ "%s\n", strerror(errno));
+ debug_ct(ct, "can't add");
+ }
}
}