111 |
static void print_service_rules_timestamp(HttpResponse, Service_T); |
static void print_service_rules_timestamp(HttpResponse, Service_T); |
112 |
static void print_service_rules_device(HttpResponse, Service_T); |
static void print_service_rules_device(HttpResponse, Service_T); |
113 |
static void print_service_rules_size(HttpResponse, Service_T); |
static void print_service_rules_size(HttpResponse, Service_T); |
114 |
|
static void print_service_rules_match(HttpResponse, Service_T); |
115 |
static void print_service_rules_checksum(HttpResponse, Service_T); |
static void print_service_rules_checksum(HttpResponse, Service_T); |
116 |
static void print_service_rules_process(HttpResponse, Service_T); |
static void print_service_rules_process(HttpResponse, Service_T); |
117 |
static void print_service_params_port(HttpResponse, Service_T); |
static void print_service_params_port(HttpResponse, Service_T); |
122 |
static void print_service_params_timestamp(HttpResponse, Service_T); |
static void print_service_params_timestamp(HttpResponse, Service_T); |
123 |
static void print_service_params_device(HttpResponse, Service_T); |
static void print_service_params_device(HttpResponse, Service_T); |
124 |
static void print_service_params_size(HttpResponse, Service_T); |
static void print_service_params_size(HttpResponse, Service_T); |
125 |
|
static void print_service_params_match(HttpResponse, Service_T); |
126 |
static void print_service_params_checksum(HttpResponse, Service_T); |
static void print_service_params_checksum(HttpResponse, Service_T); |
127 |
static void print_service_params_process(HttpResponse, Service_T); |
static void print_service_params_process(HttpResponse, Service_T); |
128 |
static void print_status(HttpRequest, HttpResponse); |
static void print_status(HttpRequest, HttpResponse); |
776 |
print_service_params_timestamp(res, s); |
print_service_params_timestamp(res, s); |
777 |
print_service_params_device(res, s); |
print_service_params_device(res, s); |
778 |
print_service_params_size(res, s); |
print_service_params_size(res, s); |
779 |
|
print_service_params_match(res, s); |
780 |
print_service_params_checksum(res, s); |
print_service_params_checksum(res, s); |
781 |
print_service_params_process(res, s); |
print_service_params_process(res, s); |
782 |
|
|
789 |
print_service_rules_timestamp(res, s); |
print_service_rules_timestamp(res, s); |
790 |
print_service_rules_device(res, s); |
print_service_rules_device(res, s); |
791 |
print_service_rules_size(res, s); |
print_service_rules_size(res, s); |
792 |
|
print_service_rules_match(res, s); |
793 |
print_service_rules_checksum(res, s); |
print_service_rules_checksum(res, s); |
794 |
print_service_rules_process(res, s); |
print_service_rules_process(res, s); |
795 |
|
|
1309 |
out_print(res, "Resource "); |
out_print(res, "Resource "); |
1310 |
if(IS_EVENT_SET(r->events, EVENT_SIZE)) |
if(IS_EVENT_SET(r->events, EVENT_SIZE)) |
1311 |
out_print(res, "Size "); |
out_print(res, "Size "); |
1312 |
|
if(IS_EVENT_SET(r->events, EVENT_MATCH)) |
1313 |
|
out_print(res, "Match "); |
1314 |
if(IS_EVENT_SET(r->events, EVENT_TIMEOUT)) |
if(IS_EVENT_SET(r->events, EVENT_TIMEOUT)) |
1315 |
out_print(res, "Timeout "); |
out_print(res, "Timeout "); |
1316 |
if(IS_EVENT_SET(r->events, EVENT_TIMESTAMP)) |
if(IS_EVENT_SET(r->events, EVENT_TIMESTAMP)) |
1576 |
} |
} |
1577 |
} |
} |
1578 |
|
|
1579 |
|
static void print_service_rules_match(HttpResponse res, Service_T s) { |
1580 |
|
|
1581 |
|
if(s->matchlist) { |
1582 |
|
|
1583 |
|
Match_T ml; |
1584 |
|
EventAction_T a; |
1585 |
|
|
1586 |
|
for(ml= s->matchlist; ml; ml= ml->next) { |
1587 |
|
|
1588 |
|
a= ml->action; |
1589 |
|
|
1590 |
|
|
1591 |
|
out_print(res, |
1592 |
|
"<tr><td>Associated regex</td><td>If %s match " |
1593 |
|
"\"%s\" then %s</td></tr>", |
1594 |
|
ml->not?"not ":"", ml->match_string, |
1595 |
|
actionnames[a->failed->id]); |
1596 |
|
|
1597 |
|
} |
1598 |
|
} |
1599 |
|
} |
1600 |
|
|
1601 |
|
|
1602 |
static void print_service_rules_checksum(HttpResponse res, Service_T s) { |
static void print_service_rules_checksum(HttpResponse res, Service_T s) { |
1603 |
|
|
1990 |
} |
} |
1991 |
} |
} |
1992 |
} |
} |
1993 |
|
|
1994 |
|
static void print_service_params_match(HttpResponse res, Service_T s) { |
1995 |
|
|
1996 |
|
if(s->type == TYPE_FILE) { |
1997 |
|
|
1998 |
|
if(!Util_hasServiceStatus(s)) { |
1999 |
|
|
2000 |
|
out_print(res, |
2001 |
|
"<tr><td>Match regex</td><td>-</font></td></tr>"); |
2002 |
|
|
2003 |
|
} else { |
2004 |
|
|
2005 |
|
out_print(res, |
2006 |
|
"<tr><td>Match regex</td><td><font%s>%s</td></tr>", |
2007 |
|
(s->error & EVENT_MATCH)?" color='#ff0000'":"", |
2008 |
|
(s->error & EVENT_MATCH)?"yes":"no"); |
2009 |
|
} |
2010 |
|
} |
2011 |
|
} |
2012 |
|
|
2013 |
|
|
2014 |
static void print_service_params_checksum(HttpResponse res, Service_T s) { |
static void print_service_params_checksum(HttpResponse res, Service_T s) { |