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/udp.c
- Revision:
- 142:a8c0890a58d1
- Parent:
- 138:5ff0c7069300
- Child:
- 171:f708d6776752
--- a/udp/udp.c Sat Apr 27 09:24:44 2019 +0000 +++ b/udp/udp.c Wed May 08 12:15:13 2019 +0000 @@ -15,7 +15,7 @@ #include "slaac.h" #include "ns.h" #include "ntpclient.h" -#include "fault.h" +#include "restart.h" bool UdpTrace = true; @@ -113,8 +113,8 @@ } int UdpHandleReceivedPacket(void (*traceback)(void), int sizeRx, char* pPacketRx, int* pSizeTx, char* pPacketTx) { - int lastFaultPoint = FaultPoint; - FaultPoint = FAULT_POINT_UdpHandleReceivedPacket; + int lastRestartPoint = RestartPoint; + RestartPoint = FAULT_POINT_UdpHandleReceivedPacket; readHeader(pPacketRx); @@ -131,7 +131,7 @@ dstPort = srcPort; srcPort = tmpPort; - FaultPoint = lastFaultPoint; + RestartPoint = lastRestartPoint; return action; } static int pollForPacketToSend(int type, int* pDataLength, char* pData)