From 927cdddf9cc1967f9b91b75e8783eb148df34297 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20COMMOWICK?= Date: Wed, 10 Aug 2011 17:42:41 +0200 Subject: [PATCH] [MINOR] halog: add support for termination code matching (-tcn/-TCN) It is now possible to filter by termination code with -tcn , to be able to track one kind of errors, for example after counting it with -tc. Use -TCN gives you the opposite. --- contrib/halog/halog.c | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/contrib/halog/halog.c b/contrib/halog/halog.c index 120521a286..8c48d0ed5a 100644 --- a/contrib/halog/halog.c +++ b/contrib/halog/halog.c @@ -97,6 +97,8 @@ struct url_stat { FILT_COUNT_URL_TTOT|FILT_COUNT_URL_TAVG|FILT_COUNT_URL_TTOTO|FILT_COUNT_URL_TAVGO) #define FILT_HTTP_ONLY 0x200000 +#define FILT_TERM_CODE_NAME 0x400000 +#define FILT_INVERT_TERM_CODE_NAME 0x800000 unsigned int filter = 0; unsigned int filter_invert = 0; @@ -120,7 +122,8 @@ void die(const char *msg) fprintf(stderr, "%s" "Usage: halog [-q] [-c] [-v] {-gt|-pct|-st|-tc|-srv|-u|-uc|-ue|-ua|-ut|-uao|-uto}\n" - " [-s ] [-e|-E] [-H] [-rt|-RT