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:
15:6ca6778168b1
Parent:
13:9cd54f7db57a
Child:
32:679654f2d023
--- a/udp/dns/dns.cpp	Fri May 05 17:44:16 2017 +0000
+++ b/udp/dns/dns.cpp	Tue May 09 15:39:03 2017 +0000
@@ -23,6 +23,8 @@
         case DNS_RECORD_A:    strncpy (text, "A",    size);      break;
         case DNS_RECORD_AAAA: strncpy (text, "AAAA", size);      break;
         case DNS_RECORD_PTR:  strncpy (text, "PTR",  size);      break;
+        case DNS_RECORD_TXT:  strncpy (text, "TXT",  size);      break;
+        case DNS_RECORD_SRV:  strncpy (text, "SRV",  size);      break;
         default:              snprintf(text, size, "%d", recordtype); break;
     }
 }
@@ -39,15 +41,11 @@
     int action;
     if (DnsHdrIsReply)
     {
-        Led1 = 1;
         action = DnsReplyHandle(dnsProtocol, pSize);
-        Led1 = 0;
     }
     else
     {
-        Led2 = 1;
         action = DnsServerHandleQuery(dnsProtocol, pSize);
-        Led2 = 0;
     }
     return action;
 }