mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 16:35:06 -05:00
addressing: introduce identifiers for unresolved addresses
Add a new type of address for NTP sources that don't have a resolved address yet. This will allow the sources to be displayed, modified and deleted by chronyc. Update utility functions to support the new addresses.
This commit is contained in:
2
util.h
2
util.h
@@ -104,6 +104,8 @@ extern char *UTI_RefidToString(uint32_t ref_id);
|
||||
extern char *UTI_IPToString(IPAddr *ip);
|
||||
|
||||
extern int UTI_StringToIP(const char *addr, IPAddr *ip);
|
||||
extern int UTI_StringToIdIP(const char *addr, IPAddr *ip);
|
||||
extern int UTI_IsIPReal(IPAddr *ip);
|
||||
extern uint32_t UTI_IPToRefid(IPAddr *ip);
|
||||
extern uint32_t UTI_IPToHash(IPAddr *ip);
|
||||
extern void UTI_IPHostToNetwork(IPAddr *src, IPAddr *dest);
|
||||
|
||||
Reference in New Issue
Block a user