A stack which works with or without an Mbed os library. Provides IPv4 or IPv6 with a full 1500 byte buffer.
Dependents: oldheating gps motorhome heating
Diff: ip4/ip4addr.c
- Revision:
- 112:f8694d0b8858
- Parent:
- 107:cc58b4c2090b
- Child:
- 113:904b40231907
diff -r 3600389d1add -r f8694d0b8858 ip4/ip4addr.c --- a/ip4/ip4addr.c Sun Jan 20 20:31:41 2019 +0000 +++ b/ip4/ip4addr.c Mon Jan 21 16:58:28 2019 +0000 @@ -6,7 +6,7 @@ #include "action.h" #include "ip4addr.h" #include "dhcp.h" -#include "ntp.h" +#include "ntpclient.h" #include "tftp.h" int Ip4AddressToString(uint32_t ip, int size, char* text) @@ -48,7 +48,7 @@ case UNICAST: /*No change*/ break; case UNICAST_DNS: *pDstIp = DhcpDnsServer; break; case UNICAST_DHCP: *pDstIp = DhcpServer; break; - case UNICAST_NTP: *pDstIp = NtpServerIp4; break; + case UNICAST_NTP: *pDstIp = NtpClientServerIp4; break; case UNICAST_TFTP: *pDstIp = TftpServerIp4; break; case MULTICAST_NODE: *pDstIp = IP4_MULTICAST_ALL_HOSTS; break; case MULTICAST_ROUTER: *pDstIp = IP4_MULTICAST_ALL_ROUTERS; break;