summaryrefslogtreecommitdiffstats
path: root/src/conntrack.c
diff options
context:
space:
mode:
authorHannes Eder <heder@google.com>2009-10-08 18:04:11 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2009-10-08 18:04:11 +0200
commiteb1127e0f72274bdcdcf6fdef96f1cbac5d19f02 (patch)
treeb8cf33656690db9ac2abe578cbe3f9d8554032ee /src/conntrack.c
parent0cd2397e80d21d77ddb97794f24bb6945849093d (diff)
conntrack: avoid error with expectations when using 'conntrack -E -e ALL ...'
Avoid this error: conntrack v0.9.13 (conntrack-tools): Operation failed: No such file or directory when using 'conntrack -E -e ALL ...'. This is caused by the fact that netfilter expectations also get delivered, but things are not setup for this, nfnl_catch returns -1 and errno = ENOENT. Signed-off-by: Hannes Eder <heder@google.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/conntrack.c')
-rw-r--r--src/conntrack.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/conntrack.c b/src/conntrack.c
index 0053a28..8e546ab 100644
--- a/src/conntrack.c
+++ b/src/conntrack.c
@@ -1401,7 +1401,8 @@ int main(int argc, char *argv[])
case CT_EVENT:
if (options & CT_OPT_EVENT_MASK)
- cth = nfct_open(CONNTRACK, event_mask);
+ cth = nfct_open(CONNTRACK,
+ event_mask & NFCT_ALL_CT_GROUPS);
else
cth = nfct_open(CONNTRACK, NFCT_ALL_CT_GROUPS);