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: udp/ntp.cpp
- Revision:
- 48:952dddb74b8b
- Parent:
- 43:bc028d5a6424
- Child:
- 49:1a6336f2b3f9
--- a/udp/ntp.cpp Thu Oct 26 14:50:24 2017 +0000 +++ b/udp/ntp.cpp Tue Oct 31 21:25:09 2017 +0000 @@ -4,7 +4,8 @@ #include "action.h" #include "ip6.h" #include "udp.h" -#include "ar.h" +#include "ar4.h" +#include "ar6.h" #include "arp.h" #include "io.h" #include "eth.h" @@ -204,10 +205,10 @@ //Check if have MAC and, if not, request it and stop char mac[6]; - ArIpToMac4(*pIp, mac); + Ar4IpToMac(*pIp, mac); if (MacIsEmpty(mac)) { - ArMakeRequestForMacFromIp4(*pIp); //The request is only repeated if made after a freeze time - call as often as you want. + Ar4MakeRequestForMacFromIp(*pIp); //The request is only repeated if made after a freeze time - call as often as you want. return false; } @@ -225,10 +226,10 @@ //Check if have MAC and, if not, request it and stop char mac[6]; - ArIpToMac6(ip, mac); + Ar6IpToMac(ip, mac); if (MacIsEmpty(mac)) { - ArMakeRequestForMacFromIp6(ip); //The request is only repeated if made after a freeze time - call as often as you want. + Ar6MakeRequestForMacFromIp(ip); //The request is only repeated if made after a freeze time - call as often as you want. return false; }