mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 16:35:06 -05:00
util: add UTI_IPSockAddrToString()
This function prints an IPSockAddr. IPv6 addresses are printed in brackets to separate the address from the port.
This commit is contained in:
2
util.h
2
util.h
@@ -115,6 +115,8 @@ extern int UTI_IPAndPortToSockaddr(IPAddr *ip, unsigned short port, struct socka
|
||||
extern char *UTI_SockaddrToString(struct sockaddr *sa);
|
||||
extern const char *UTI_SockaddrFamilyToString(int family);
|
||||
|
||||
extern char *UTI_IPSockAddrToString(IPSockAddr *sa);
|
||||
|
||||
extern char *UTI_TimeToLogForm(time_t t);
|
||||
|
||||
/* Adjust time following a frequency/offset change */
|
||||
|
||||
Reference in New Issue
Block a user