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
Diff: eth/arp.cpp
- Revision:
- 37:793b39683406
- Parent:
- 36:900e24b27bfb
- Child:
- 42:222a4f45f916
diff -r 900e24b27bfb -r 793b39683406 eth/arp.cpp --- a/eth/arp.cpp Mon Sep 25 07:09:32 2017 +0000 +++ b/eth/arp.cpp Wed Oct 04 07:51:02 2017 +0000 @@ -1,12 +1,13 @@ -#include "mbed.h" -#include "log.h" -#include "net.h" -#include "eth.h" -#include "mac.h" -#include "dhcp.h" -#include "ar.h" -#include "nr.h" -#include "io.h" +#include "mbed.h" +#include "log.h" +#include "action.h" +#include "net.h" +#include "eth.h" +#include "mac.h" +#include "dhcp.h" +#include "ar.h" +#include "nr.h" +#include "io.h" #define REQUEST 1 #define REPLY 2 @@ -28,7 +29,7 @@ char targetHardwareAddress[6]; //nbytes: (ar$tha) Hardware address of target of this packet (if known). uint32_t targetProtocolAddress; //mbytes: (ar$tpa) Protocol address of target. }; -int ArpHandleReceivedPacket(char* pSrcMac, void * pPacket, int* pSize, char* pDstMac) +int ArpHandleReceivedPacket(void (*traceback)(void), char* pSrcMac, void * pPacket, int* pSize, char* pDstMac) { struct header* pHeader = (header*)pPacket; int16_t hardwareType = NetToHost16(pHeader->hardwareType);