diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2020-02-23 23:31:26 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2020-02-23 23:31:26 +0200 |
commit | b42866f337ced2942eca3d02a23813536c108452 (patch) | |
tree | 94f11eded557ee16fa20b8bf359d468e10ef8b44 /src/ping903q.c | |
parent | d9dfecfa5f1d8e217f1f8a05a261afa5b5f4d6cd (diff) | |
download | ping903-b42866f337ced2942eca3d02a23813536c108452.tar.gz ping903-b42866f337ced2942eca3d02a23813536c108452.tar.bz2 |
Save local additions in a local ip list file. Read it at startup.
* src/config.c (file_read_ip_list): New function.
* src/defs.h (LOCAL_IP_LIST_FILE): New definition.
* src/ping903.h (file_read_ip_list): New proto.
* src/pinger.c (conf_hostping_count)
(hostping_updated): New static variables.
(hostping_add,hostping_delete): Raise the hostping_updated flag.
(p903_init): Read in the local ip-list file, if it exists.
Clear hostping_updated.
(p903_scheduler): Save changes to the local ip-list file, if
hostping_updated is set.
Diffstat (limited to 'src/ping903q.c')
0 files changed, 0 insertions, 0 deletions