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:
59:e0e556c8bd46
Parent:
58:d48c899e482f
--- a/udp/dns/dnsreply.cpp	Thu Dec 07 20:44:32 2017 +0000
+++ b/udp/dns/dnsreply.cpp	Thu Dec 14 20:55:40 2017 +0000
@@ -85,7 +85,7 @@
             return;
     }
 
-    DnsNameDecodePtr(pRecordName, sizeof(DnsReplyRecordName), DnsReplyRecordName);
+    DnsNameDecodePtr(pRecordName,  DnsReplyRecordName, sizeof(DnsReplyRecordName));
     DnsNameDecodeIp4(pRecordName, &DnsReplyRecordNameAsIp4);
     DnsNameDecodeIp6(pRecordName,  DnsReplyRecordNameAsIp6);
 
@@ -101,7 +101,7 @@
             break;
         case DNS_RECORD_PTR:
             if (recordDataLength > DNS_MAX_LABEL_LENGTH) return;
-            DnsNameDecodePtr(pRecordData, sizeof(DnsReplyName), DnsReplyName);
+            DnsNameDecodePtr(pRecordData, DnsReplyName, sizeof(DnsReplyName));
             break;
     }
 }
@@ -117,8 +117,9 @@
     if (DnsReplyRecordNameAsIp4    && DnsReplyName[0]      ) Nr4AddIpRecord(DnsReplyRecordNameAsIp4, strippedName, dnsProtocol);
     if (DnsReplyRecordNameAsIp6[0] && DnsReplyName[0]      ) Nr6AddIpRecord(DnsReplyRecordNameAsIp6, strippedName, dnsProtocol);
 }
-int DnsReplyHandle(void (*traceback)(void), int dnsProtocol, int *pSize)
+int DnsReplyHandle(void (*traceback)(void), int dnsProtocol)
 {
+    
     bool ok = true;
     if (!DnsHdrAncount) ok = false;