projects
/
privoxy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add explanation for send-banner?type=custom in default.filter. See
[privoxy.git]
/
src
/
parsers.c
diff --git
a/src/parsers.c
b/src/parsers.c
index
2939425
..
9ad0341
100644
(file)
--- a/
src/parsers.c
+++ b/
src/parsers.c
@@
-1,4
+1,4
@@
-const char parsers_rcs[] = "$Id: parsers.c,v 2.
1 2002/09/11 11:23:59 oes
Exp $";
+const char parsers_rcs[] = "$Id: parsers.c,v 2.
3 2002/12/28 03:58:19 david__schmidt
Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/src/parsers.c,v $
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/src/parsers.c,v $
@@
-40,6
+40,13
@@
const char parsers_rcs[] = "$Id: parsers.c,v 2.1 2002/09/11 11:23:59 oes Exp $";
*
* Revisions :
* $Log: parsers.c,v $
*
* Revisions :
* $Log: parsers.c,v $
+ * Revision 2.3 2002/12/28 03:58:19 david__schmidt
+ * Initial drop of dashboard instrumentation - enabled with
+ * --enable-activity-console
+ *
+ * Revision 2.2 2002/11/10 04:20:38 hal9
+ * Fix typo: supressed -> suppressed
+ *
* Revision 2.1 2002/09/11 11:23:59 oes
* Fixed logging of cookies: Killed incoming cookies now logged; incoming/outgoing cookies now distinguished in log
*
* Revision 2.1 2002/09/11 11:23:59 oes
* Fixed logging of cookies: Killed incoming cookies now logged; incoming/outgoing cookies now distinguished in log
*
@@
-417,6
+424,9
@@
const char parsers_rcs[] = "$Id: parsers.c,v 2.1 2002/09/11 11:23:59 oes Exp $";
#include "jbsockets.h"
#include "miscutil.h"
#include "list.h"
#include "jbsockets.h"
#include "miscutil.h"
#include "list.h"
+#ifdef FEATURE_ACTIVITY_CONSOLE
+#include "stats.h"
+#endif /* def FEATURE_ACTIVITY_CONSOLE */
const char parsers_h_rcs[] = PARSERS_H_VERSION;
const char parsers_h_rcs[] = PARSERS_H_VERSION;
@@
-1091,6
+1101,11
@@
jb_err client_referrer(struct client_state *csp, char **header)
newval = csp->action->string[ACTION_STRING_REFERER];
newval = csp->action->string[ACTION_STRING_REFERER];
+#ifdef FEATURE_ACTIVITY_CONSOLE
+ /* Otherwise, we're doing something with the referer. */
+ accumulate_stats(STATS_REFERER, 1);
+#endif /* def FEATURE_ACTIVITY_CONSOLE */
+
if ((newval == NULL) || (0 == strcmpic(newval, "block")) )
{
/*
if ((newval == NULL) || (0 == strcmpic(newval, "block")) )
{
/*
@@
-1200,6
+1215,9
@@
jb_err client_ua(struct client_state *csp, char **header)
{
if ((csp->action->flags & ACTION_HIDE_USER_AGENT) != 0)
{
{
if ((csp->action->flags & ACTION_HIDE_USER_AGENT) != 0)
{
+#ifdef FEATURE_ACTIVITY_CONSOLE
+ accumulate_stats(STATS_CLIENT_UA, 1);
+#endif /* def FEATURE_ACTIVITY_CONSOLE */
log_error(LOG_LEVEL_HEADER, "crunch!");
freez(*header);
}
log_error(LOG_LEVEL_HEADER, "crunch!");
freez(*header);
}
@@
-1235,6
+1253,10
@@
jb_err client_from(struct client_state *csp, char **header)
return JB_ERR_OK;
}
return JB_ERR_OK;
}
+#ifdef FEATURE_ACTIVITY_CONSOLE
+ /* Otherwise, we're doing something with it. */
+ accumulate_stats(STATS_CLIENT_FROM, 1);
+#endif /* def FEATURE_ACTIVITY_CONSOLE */
freez(*header);
newval = csp->action->string[ACTION_STRING_FROM];
freez(*header);
newval = csp->action->string[ACTION_STRING_FROM];
@@
-1335,6
+1357,9
@@
jb_err client_x_forwarded(struct client_state *csp, char **header)
else
{
freez(*header);
else
{
freez(*header);
+#ifdef FEATURE_ACTIVITY_CONSOLE
+ accumulate_stats(STATS_CLIENT_X_FORWARDED, 1);
+#endif /* def FEATURE_ACTIVITY_CONSOLE */
log_error(LOG_LEVEL_HEADER, " crunch!");
}
log_error(LOG_LEVEL_HEADER, " crunch!");
}
@@
-1682,6
+1707,9
@@
jb_err server_set_cookie(struct client_state *csp, char **header)
if ((csp->action->flags & ACTION_NO_COOKIE_SET) != 0)
{
log_error(LOG_LEVEL_HEADER, "Crunched incoming cookie -- yum!");
if ((csp->action->flags & ACTION_NO_COOKIE_SET) != 0)
{
log_error(LOG_LEVEL_HEADER, "Crunched incoming cookie -- yum!");
+#ifdef FEATURE_ACTIVITY_CONSOLE
+ accumulate_stats(STATS_COOKIE, 1);
+#endif /* def FEATURE_ACTIVITY_CONSOLE */
return crumble(csp, header);
}
else if ((csp->action->flags & ACTION_NO_COOKIE_KEEP) != 0)
return crumble(csp, header);
}
else if ((csp->action->flags & ACTION_NO_COOKIE_KEEP) != 0)