-const char jcc_rcs[] = "$Id: jcc.c,v 2.3 2002/07/18 22:06:12 jongfoster Exp $";
+const char jcc_rcs[] = "$Id: jcc.c,v 2.4 2002/12/28 03:58:19 david__schmidt Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/src/jcc.c,v $
*
* Revisions :
* $Log: jcc.c,v $
+ * Revision 2.4 2002/12/28 03:58:19 david__schmidt
+ * Initial drop of dashboard instrumentation - enabled with
+ * --enable-activity-console
+ *
* Revision 2.3 2002/07/18 22:06:12 jongfoster
* Trivial formatting changes
*
#ifdef FEATURE_ACL
if (block_acl(NULL,csp))
{
+#ifdef FEATURE_ACTIVITY_CONSOLE
+ accumulate_stats(STATS_ACL_RESTRICT,1);
+#endif /* def FEATURE_ACTIVITY_CONSOLE */
log_error(LOG_LEVEL_CONNECT, "Connection dropped due to ACL");
close_socket(csp->cfd);
freez(csp);
-const char parsers_rcs[] = "$Id: parsers.c,v 2.2 2002/11/10 04:20:38 hal9 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 $
*
* 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
*
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")) )
{
/*
* Blocking referer
*/
-#ifdef FEATURE_ACTIVITY_CONSOLE
- accumulate_stats(STATS_REFERER, 1);
-#endif /* def FEATURE_ACTIVITY_CONSOLE */
log_error(LOG_LEVEL_HEADER, "crunch!");
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];
*/
if ((newval == NULL) || (0 == strcmpic(newval, "block")) )
{
-#ifdef FEATURE_ACTIVITY_CONSOLE
- accumulate_stats(STATS_CLIENT_FROM, 1);
-#endif /* def FEATURE_ACTIVITY_CONSOLE */
log_error(LOG_LEVEL_HEADER, "crunch!");
return JB_ERR_OK;
}
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)