summaryrefslogtreecommitdiffstats
path: root/ntp_sources.h
diff options
context:
space:
mode:
Diffstat (limited to 'ntp_sources.h')
-rw-r--r--ntp_sources.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/ntp_sources.h b/ntp_sources.h
index 5aeb1a3..89a322e 100644
--- a/ntp_sources.h
+++ b/ntp_sources.h
@@ -55,9 +55,12 @@ extern NSR_Status NSR_AddSource(NTP_Remote_Address *remote_addr, NTP_Source_Type
/* Procedure to add a new server, peer source, or pool of servers specified by
name instead of address. The name is resolved in exponentially increasing
- intervals until it succeeds or fails with a non-temporary error. If the
- name is an address, it is equivalent to NSR_AddSource(). */
-extern NSR_Status NSR_AddSourceByName(char *name, int port, int pool, NTP_Source_Type type,
+ intervals until it succeeds or fails with a non-temporary error. The
+ specified family filters resolved addresses. If the name is an address
+ and its family does not conflict with the specified family, it is equivalent
+ to NSR_AddSource(). */
+extern NSR_Status NSR_AddSourceByName(char *name, int family, int port, int pool,
+ NTP_Source_Type type,
SourceParameters *params, uint32_t *conf_id);
extern const char *NSR_StatusToString(NSR_Status status);
@@ -137,6 +140,8 @@ extern int NSR_ModifyMaxdelaydevratio(IPAddr *address, double new_max_delay_rati
extern int NSR_ModifyMinstratum(IPAddr *address, int new_min_stratum);
+extern int NSR_ModifyOffset(IPAddr *address, double new_offset);
+
extern int NSR_ModifyPolltarget(IPAddr *address, int new_poll_target);
extern int NSR_InitiateSampleBurst(int n_good_samples, int n_total_samples, IPAddr *mask, IPAddr *address);