mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 18:25:07 -05:00
addressing: introduce IPSockAddr
Rename NTP_Remote_Address to IPSockAddr to make it usable in non-NTP context and provide NTP_Remote_Address for compatibility. Also, change the type of port to uint16_t.
This commit is contained in:
@@ -47,8 +47,10 @@ typedef struct {
|
|||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
IPAddr ip_addr;
|
IPAddr ip_addr;
|
||||||
unsigned short port;
|
uint16_t port;
|
||||||
} NTP_Remote_Address;
|
} IPSockAddr;
|
||||||
|
|
||||||
|
typedef IPSockAddr NTP_Remote_Address;
|
||||||
|
|
||||||
#define INVALID_IF_INDEX -1
|
#define INVALID_IF_INDEX -1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user