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

Committer:
andrewboyson
Date:
Wed Jan 09 14:24:25 2019 +0000
Revision:
104:871e65deaa5e
Parent:
102:a53ab3f0456b
Added precision to NTP server and renamed function routines

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 37:793b39683406 1 extern bool NtpTrace;
andrewboyson 37:793b39683406 2
andrewboyson 104:871e65deaa5e 3 extern uint64_t (*NtpFunctionGetClockTime) ();
andrewboyson 22:914b970356f0 4
andrewboyson 22:914b970356f0 5 extern bool NtpServerEnable;
andrewboyson 104:871e65deaa5e 6 extern uint64_t (*NtpFunctionGetClockRef) ();
andrewboyson 104:871e65deaa5e 7 extern int (*NtpFunctionGetClockStratum) ();
andrewboyson 104:871e65deaa5e 8 extern char* (*NtpFunctionGetClockIdent) ();
andrewboyson 104:871e65deaa5e 9 extern int (*NtpFunctionGetClockLi) ();
andrewboyson 104:871e65deaa5e 10 extern int (*NtpFunctionGetClockPrecision)();
andrewboyson 17:e475ab861365 11
andrewboyson 83:08c983006a6e 12 extern bool NtpSendRequestsViaIp4;
andrewboyson 35:93c39d260a83 13 extern char NtpServerName[];
andrewboyson 22:914b970356f0 14 extern bool NtpClientRequest;
andrewboyson 68:e8c002e5ee4b 15 extern bool NtpClientTrace;
andrewboyson 104:871e65deaa5e 16 extern void (*NtpFunctionSetClockTime) (uint64_t ori, uint64_t rec, int li);
andrewboyson 35:93c39d260a83 17
andrewboyson 37:793b39683406 18 extern uint32_t NtpServerIp4;
andrewboyson 37:793b39683406 19 extern char NtpServerIp6[];
andrewboyson 22:914b970356f0 20
andrewboyson 59:e0e556c8bd46 21 extern int NtpHandlePacketReceived(void (*traceback)(void), int sizeRx, void* pPacketRx, int* pSizeTx, void* pPacketTx);
andrewboyson 22:914b970356f0 22 extern int NtpPollForPacketToSend(int type, void* pPacket, int* pSize);
andrewboyson 22:914b970356f0 23
andrewboyson 22:914b970356f0 24
andrewboyson 14:e75a59c1123d 25 #define NTP_PORT 123