summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2011-02-22 15:34:59 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2011-02-22 15:34:59 +0100
commit88fd3dc90716e9d252cedcd668371743730acdcb (patch)
treebfe1237ee53e34b0e976a27d95a5d2ab48f56e39
parentc74b242213cbf9b26c9127dc3ce583e6a3cfdbc5 (diff)
downloadconntrack-tools-88fd3dc90716e9d252cedcd668371743730acdcb.tar.gz
conntrack-tools-88fd3dc90716e9d252cedcd668371743730acdcb.zip
conntrack: display informative message if expectation table is flushed
With this patch, we display the following message after: # conntrack -F expect conntrack v0.9.15 (conntrack-tools): expectation table has been emptied. To make it consistent with the message displayed with conntrack -F. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--src/conntrack.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/conntrack.c b/src/conntrack.c
index fe4cbf0..aca36eb 100644
--- a/src/conntrack.c
+++ b/src/conntrack.c
@@ -1714,6 +1714,8 @@ int main(int argc, char *argv[])
exit_error(OTHER_PROBLEM, "Can't open handler");
res = nfexp_query(cth, NFCT_Q_FLUSH, &family);
nfct_close(cth);
+ fprintf(stderr, "%s v%s (conntrack-tools): ",PROGNAME,VERSION);
+ fprintf(stderr,"expectation table has been emptied.\n");
break;
case CT_EVENT: