diff options
author | Hannes Eder <heder@google.com> | 2009-10-08 18:04:11 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-10-08 18:04:11 +0200 |
commit | eb1127e0f72274bdcdcf6fdef96f1cbac5d19f02 (patch) | |
tree | b8cf33656690db9ac2abe578cbe3f9d8554032ee /src/conntrack.c | |
parent | 0cd2397e80d21d77ddb97794f24bb6945849093d (diff) | |
download | conntrack-tools-eb1127e0f72274bdcdcf6fdef96f1cbac5d19f02.tar.gz conntrack-tools-eb1127e0f72274bdcdcf6fdef96f1cbac5d19f02.zip |
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.c | 3 |
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); |