From 88fd3dc90716e9d252cedcd668371743730acdcb Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 22 Feb 2011 15:34:59 +0100 Subject: 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 --- src/conntrack.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/conntrack.c') 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: -- cgit v1.2.3