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:
57:e0fb648acf48
--- a/udp/dns/dnsquery.cpp	Thu Dec 07 20:44:32 2017 +0000
+++ b/udp/dns/dnsquery.cpp	Thu Dec 14 20:55:40 2017 +0000
@@ -125,8 +125,10 @@
     }
     Log("\r\n");
 }
-int DnsQueryPoll(int* pSize)
+int DnsQueryPoll(void* pPacket, int* pSize)
 {   
+    DnsHdrSetup(pPacket, *pSize);
+
     if (!DnsQueryIsBusy)                                           return DO_NOTHING;
     if (DnsQueryProtocol == DNS_PROTOCOL_UDNS && DhcpLocalIp == 0) return DO_NOTHING;