[conntrack-tools] conntrack: fix dump counter displayed with -L expect

Pablo Neira netfilter-cvslog-bounces at lists.netfilter.org
Thu Oct 9 15:01:52 CEST 2008


Gitweb:		http://git.netfilter.org/cgi-bin/gitweb.cgi?p=conntrack-tools.git;a=commit;h=09a3f0cba34c2d29e9b6ffa3151fc970c5b93599
commit 09a3f0cba34c2d29e9b6ffa3151fc970c5b93599
Author:     Pablo Neira Ayuso <pablo at netfilter.org>
AuthorDate: Thu Oct 9 15:01:44 2008 +0200
Commit:     Pablo Neira Ayuso <pablo at netfilter.org>
CommitDate: Thu Oct 9 15:01:44 2008 +0200

    conntrack: fix dump counter displayed with -L expect
    
    This patch fixes the dump counter displayed with -L expect.
    
    Signed-off-by: Pablo Neira Ayuso <pablo at netfilter.org>
       via  09a3f0cba34c2d29e9b6ffa3151fc970c5b93599 (commit)
      from  e44561766b025600e4af55a35166db46206dd42c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 09a3f0cba34c2d29e9b6ffa3151fc970c5b93599
Author: Pablo Neira Ayuso <pablo at netfilter.org>
Date:   Thu Oct 9 15:01:44 2008 +0200

    conntrack: fix dump counter displayed with -L expect
    
    This patch fixes the dump counter displayed with -L expect.
    
    Signed-off-by: Pablo Neira Ayuso <pablo at netfilter.org>

-----------------------------------------------------------------------

 src/conntrack.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
This patch fixes the dump counter displayed with -L expect.

Signed-off-by: Pablo Neira Ayuso <pablo at netfilter.org>

diff --git a/src/conntrack.c b/src/conntrack.c
index eccaa7b..0051639 100644
--- a/src/conntrack.c
+++ b/src/conntrack.c
@@ -863,6 +863,7 @@ static int dump_exp_cb(enum nf_conntrack_msg_type type,
 
 	nfexp_snprintf(buf, 1024, exp, NFCT_T_UNKNOWN, NFCT_O_DEFAULT, 0);
 	printf("%s\n", buf);
+	counter++;
 
 	return NFCT_CB_CONTINUE;
 }



More information about the netfilter-cvslog mailing list