Age | Commit message (Collapse) | Author | Files |
|
|
|
|
|
This speeds up searches and eliminates the possibility of duplicate
host entries.
* src/rbt.c: New file.
* src/Makefile.am: Add new file.
* src/config.c (file_read_ip_list): Update diagnostic output.
* src/defs.h (LOCAL_IP_LIST_FILE): Rename to MUTABLE_IP_LIST_FILE.
All uses changed.
* src/ping903.c (ping903): Fix the shutting down diagnostic message.
* src/ping903.h: RBT definitions and prototypes.
* src/pinger.c (conf_hostping_tail): Rename to immutable_hostping_tail.
(FOR_EACH_LOCAL_HOSTPING): Rename to FOR_EACH_MUTABLE_HOSTPING.
(save_local_ip_list): Rename to save_mutable_ip_list.
All uses changed.
(host_name_tree, host_addr_tree): New statics.
(pinger_setup): Initialize index trees.
(check_host): Look up both the host name and its IP address.
All uses changed.
(pinger_rbt_insert, pinger_rbt_delete)
(hostping_lookup_by_name, hostping_lookup_by_addr): New functions.
(hostlist_index,hostlist_unindex): New functions.
(pinger_host_add): Insert index entry for the new hostping structure.
(get_hostname_stat): Rewrite using index tree lookup.
(get_host_matches): Likewise.
(hostlist_copy_stat): Likewise.
(hostping_match): Remove.
(p903_update_commit): Update index trees.
(p903_init): Mark all configured hosts as immutable.
|
|
|
|
|
|
* NEWS: Update.
* README: Update.
* configure.ac: Version 0.5.90
* doc/ping903q.1: Update.
* src/ping903q.c: Disallow the use without arguments.
New option -a: query statistics for "all" monitored IPs.
|
|
* NEWS: Update.
* configure.ac: Raise version number.
* examples/lib/LWP/Ping903.pm: Remove.
* examples/README: Mention Mangemanche. Remove references to
lib/LWP/Ping903.pm
* examples/dbload: Revert to LWP::UserAgent
* examples/inspect: Likewise.
* examples/ipadd: Likewise.
* examples/ipdel: Likewise.
|
|
Here-document is supported for ip-list and trusted-ip statements.
* doc/ping903.conf.5: Document the here-document syntax.
* NEWS: Likewise.
* examples/inspect: Mention that the created output is a valid
configuration file.
* src/config.c: Support for here-document.
* src/defs.h: Mark printf-like functions as such.
* src/ping903.h (CF_HEREDOC_OPCODE): New data type.
(cf_callback_arg): Add heredoc member.
(STMT_T_HEREDOC): New statement type.
* src/remoteip.c (cf_trusted_ip_heredoc): New function.
* src/ping903.c: Fix format strings and unused variables.
* src/ping903q.c: Likewise.
* src/pinger.c: Likewise.
|
|
|
|
|
|
* NEWS: Update.
* README: Update.
* THANKS: Update.
* doc/ping903.8: Spell checking.
* doc/ping903q.1: Likewise.
* src/Makefile.am: Distribute ping903.conf
* src/ping903.h (HOST_STAT_INIT)
(HOST_STAT_VALID,HOST_STAT_PENDING)
(HOST_STAT_INVALID): New constants.
(host_stat): New member "status".
(host_stat_is_valid): Rewrite using status.
* src/ping903q.c: "status" is string now. Handle particular values.
* src/pinger.c: Maintain current status of each host_stat structure in
the status member.
(host_stat): Mark object as valid.
(host_reset): Update status.
(get_host_stat): Report object validity in the "validity" member,
and its current status in "status" (string).
* src/json.c: Implement json_value_copy.
* src/json.h (json_value_copy): New proto.
* src/ping903.c (ept_config): Return particular setting, if
so requested.
|
|
|