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:
Miroslav Lichvar 2019-07-18 08:05:43 +02:00
parent e5b9b6d701
commit ca96946416

View file

@ -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