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
ip4/icmp/echo4.cpp
- Committer:
- andrewboyson
- Date:
- 2017-10-19
- Revision:
- 43:bc028d5a6424
- Child:
- 59:e0e556c8bd46
File content as of revision 43:bc028d5a6424:
#include "mbed.h" #include "log.h" #include "net.h" #include "action.h" bool Echo4Trace = false; int Echo4HandleRequest(void (*traceback)(void), uint8_t* pType, uint8_t* pCode) { if (Echo4Trace) { if (NetTraceNewLine) Log("\r\n"); LogTime("Echo4\r\n"); if (NetTraceStack) traceback(); } *pType = 0; *pCode = 0; return ActionMakeFromDestAndTrace(UNICAST, Echo4Trace && NetTraceStack); }