mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 16:35:06 -05:00
ntp: allow replacement of sources specified by IP address
For sources specified by an IP address, keep the original address as the source's name and pass it to the NCR instance. Allow the sources to go through the replacement process if their address has changed. This will be useful with NTS-KE negotiation. The IP-based source names are now provided via cmdmon. This means chronyc -n and -N can show two different addresses for a source.
This commit is contained in:
1
util.h
1
util.h
@@ -109,6 +109,7 @@ extern char *UTI_RefidToString(uint32_t ref_id);
|
||||
extern char *UTI_IPToString(const IPAddr *ip);
|
||||
|
||||
extern int UTI_StringToIP(const char *addr, IPAddr *ip);
|
||||
extern int UTI_IsStringIP(const char *string);
|
||||
extern int UTI_StringToIdIP(const char *addr, IPAddr *ip);
|
||||
extern int UTI_IsIPReal(const IPAddr *ip);
|
||||
extern uint32_t UTI_IPToRefid(const IPAddr *ip);
|
||||
|
||||
Reference in New Issue
Block a user