Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: oldheating gps motorhome heating
ip6/icmp/echo6.c
- Committer:
- andrewboyson
- Date:
- 2018-12-05
- Revision:
- 94:e2973a2c488e
- Parent:
- 61:aad055f1b0d1
File content as of revision 94:e2973a2c488e:
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include "log.h"
#include "net.h"
#include "action.h"
bool Echo6Trace = false;
int Echo6HandleRequest(void (*traceback)(void), uint8_t* pType, uint8_t* pCode, char* payloadRx, int sizeRx, char* payloadTx, int* pSizeTx)
{
if (Echo6Trace)
{
if (NetTraceNewLine) Log("\r\n");
LogTime("Echo6\r\n");
if (NetTraceStack) traceback();
}
*pType = 129;
*pCode = 0;
*pSizeTx = sizeRx;
memcpy(payloadTx, payloadRx, *pSizeTx);
return ActionMakeFromDestAndTrace(UNICAST, Echo6Trace && NetTraceStack);
}