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

Revision:
37:793b39683406
Parent:
33:714a0345e59b
Child:
41:db727df5f98b
--- a/udp/dns/dns.cpp	Mon Sep 25 07:09:32 2017 +0000
+++ b/udp/dns/dns.cpp	Wed Oct 04 07:51:02 2017 +0000
@@ -129,18 +129,18 @@
     DnsQueryTick();
 }
 
-int DnsHandlePacketReceived(int dnsProtocol, int* pSize, void* pPacket)
+int DnsHandlePacketReceived(void (*traceback)(void), int dnsProtocol, int* pSize, void* pPacket)
 {
     DnsHdrSetup(pPacket);
     DnsHdrRead();
     int action;
     if (DnsHdrIsReply)
     {
-        action = DnsReplyHandle(dnsProtocol, pSize);
+        action = DnsReplyHandle(traceback, dnsProtocol, pSize);
     }
     else
     {
-        action = DnsServerHandleQuery(dnsProtocol, pSize);
+        action = DnsServerHandleQuery(traceback, dnsProtocol, pSize);
     }
     return action;
 }