From: Johannes Maximilian Kuehn Date: Sat, 15 Aug 2009 17:47:29 +0000 (+0900) Subject: ntp_config.h: X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e5274dc4dcac4223b5b8400f3efa5fd0471cdb7;p=thirdparty%2Fntp.git ntp_config.h: Added source and timestamp to the config_tree structure bk: 4a86f4b1OnykzVV2ia22ITOg4HIFPg --- diff --git a/include/ntp_config.h b/include/ntp_config.h index a2e2e031dd..113d908566 100644 --- a/include/ntp_config.h +++ b/include/ntp_config.h @@ -45,6 +45,11 @@ /* Limits */ #define MAXLINE 1024 +/* Configuration sources */ + +#define CONF_SOURCE_FILE 0 +#define CONF_SOURCE_NTPQ 1 + /* Structure for storing an attribute-value pair */ struct attr_val { @@ -130,6 +135,9 @@ enum broadcastclienttype { struct config_tree { struct config_tree *prior; + struct attr_val source; + time_t timestamp; + queue *peers; queue *unpeers; @@ -201,6 +209,7 @@ extern struct REMOTE_CONFIG_INFO remote_config; void config_remotely(void); int dump_config_tree(struct config_tree *ptree, FILE *df); +int dump_all_config_trees(FILE *df); #endif