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:
parent
e5b9b6d701
commit
ca96946416
1 changed files with 4 additions and 2 deletions
|
@ -47,8 +47,10 @@ typedef struct {
|
|||
|
||||
typedef struct {
|
||||
IPAddr ip_addr;
|
||||
unsigned short port;
|
||||
} NTP_Remote_Address;
|
||||
uint16_t port;
|
||||
} IPSockAddr;
|
||||
|
||||
typedef IPSockAddr NTP_Remote_Address;
|
||||
|
||||
#define INVALID_IF_INDEX -1
|
||||
|
||||
|
|
Loading…
Reference in a new issue