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:
Tue Jan 08 15:46:12 2019 +0000
Revision:
102:a53ab3f0456b
Parent:
101:a677d8aee6dd
Child:
104:871e65deaa5e
Changed two NTP plumbing function names

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 37:793b39683406 1 extern bool NtpTrace;
andrewboyson 37:793b39683406 2
andrewboyson 102:a53ab3f0456b 3 extern uint64_t (*NtpGetClockTimeFunction) ();
andrewboyson 22:914b970356f0 4
andrewboyson 22:914b970356f0 5 extern bool NtpServerEnable;
andrewboyson 20:23f2b29b48ea 6 extern uint64_t (*NtpGetClockRefFunction) ();
andrewboyson 20:23f2b29b48ea 7 extern int (*NtpGetClockStratumFunction)();
andrewboyson 20:23f2b29b48ea 8 extern char* (*NtpGetClockIdentFunction) ();
andrewboyson 101:a677d8aee6dd 9 extern int (*NtpGetClockLiFunction) ();
andrewboyson 17:e475ab861365 10
andrewboyson 83:08c983006a6e 11 extern bool NtpSendRequestsViaIp4;
andrewboyson 35:93c39d260a83 12 extern char NtpServerName[];
andrewboyson 22:914b970356f0 13 extern bool NtpClientRequest;
andrewboyson 68:e8c002e5ee4b 14 extern bool NtpClientTrace;
andrewboyson 102:a53ab3f0456b 15 extern void (*NtpSetClockTimeFunction) (uint64_t ori, uint64_t rec, int li);
andrewboyson 35:93c39d260a83 16
andrewboyson 37:793b39683406 17 extern uint32_t NtpServerIp4;
andrewboyson 37:793b39683406 18 extern char NtpServerIp6[];
andrewboyson 22:914b970356f0 19
andrewboyson 59:e0e556c8bd46 20 extern int NtpHandlePacketReceived(void (*traceback)(void), int sizeRx, void* pPacketRx, int* pSizeTx, void* pPacketTx);
andrewboyson 22:914b970356f0 21 extern int NtpPollForPacketToSend(int type, void* pPacket, int* pSize);
andrewboyson 22:914b970356f0 22
andrewboyson 22:914b970356f0 23
andrewboyson 14:e75a59c1123d 24 #define NTP_PORT 123