Commit ca038473 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Implement 111=get_stats_description and 112=get_stats.

Collect more statistics.
parent 9ba6e222
2003-07-24 Per Cederqvist <ceder@ceder.dyndns.org>
Implement 111=get_stats_description and 112=get_stats.
* src/server/stats.h (check_all_stats): New name for former
check_stat.
* src/server/stats.c (check_stat): Only check a single
statistics. Now static.
(check_all_stats): New name for former check_stat. All callers
updated.
(name): New static function.
(get_stats_description): New protocol request.
(get_stats): New protocol request.
* doc/lyskomd.texi (Parameters): Documented "Statistic name
length".
* src/server/server-config.c (parameters): Added "Statistic name
length".
* src/server/ramkomd.c (main): Use check_all_stats instead of
check_stat.
* src/server/prot-a.c (prot_a_reply): Handle rt_stats_description.
* src/server/prot-a-output.h, src/server/prot-a-output.c
(prot_a_output_stats_description): New function.
* src/server/param.h (struct kom_par): Added stat_name_len.
* src/server/fncdef.txt: Added 111=get_stats_description and
112=get_stats.
* src/server/connections.h (enum res_type): Added
rt_stats_description.
(union result_holder): Added stats_description.
* src/include/services.h (get_stats_description): New request.
(get_stats): New request.
* src/include/kom-types.h (Stats_description): New data type.
* src/include/kom-errno.h (enum kom_err): Added
KOM_UNDEFINED_MEASUREMENT.
* doc/constructs.expected: Added @code{when} and @samp{X-}.
* doc/Protocol-A.texi (Statistics): New section.
(get-stats-description): New request.
(get-stats): New request.
(Error Codes): Documented undefined-measurement.
(Measured Properties): New chapter.
* src/server/testsuite/lyskomd.0/01.exp: Test
get-stats-description and get-stats.
* src/server/testsuite/lyskomd.0/03.exp: Ditto.
Collect more statistics.
* src/server/rfc931.c (get_real_username): Update the
STAT_IDENT_QUEUE and STAT_PROCESSED_IDENT statistics.
* src/server/stats.h (enum stat_type): Added STAT_DNS_QUEUE,
STAT_IDENT_QUEUE, STAT_PROCESSED_DNS and STAT_PROCESSED_IDENT.
* src/server/connections.c (logout_client): Update the
STAT_CLIENTS statistics.
(login_request): Ditto.
(get_host_name): Update the STAT_DNS_QUEUE and STAT_PROCESSED_DNS
statistics.
2003-07-23 Per Cederqvist <ceder@ceder.dyndns.org>
Fixed the overflow checking of timeval configuration parameters.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment