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:
44:83ce5ace337b
Parent:
43:bc028d5a6424
Child:
47:73af5c0b0dc2
--- a/udp/dns/dnshdr.cpp	Thu Oct 19 20:56:58 2017 +0000
+++ b/udp/dns/dnshdr.cpp	Sun Oct 22 17:19:17 2017 +0000
@@ -103,7 +103,7 @@
 
         char text[256];
         DnsRecordTypeToString(recordType, sizeof(text), text);
-        LogF("  Query %s type record of ", text);
+        LogF("   Query %s type record of ", text);
         DnsNameDecodePtr(iEncodedName, sizeof(text), text);
         LogF("%s\r\n", text);
     }
@@ -218,8 +218,7 @@
     else
     {
         DnsProtocolToString(protocol, sizeof(text), text);
-        Log(text);
-        LogF(" header qd, an, ns, ar  %hu, %hu, %hu, %hu\r\n", DnsHdrQdcount, DnsHdrAncount, DnsHdrNscount, DnsHdrArcount);
+        LogF("%-5s header qd, an, ns, ar  %hu, %hu, %hu, %hu\r\n", text, DnsHdrQdcount, DnsHdrAncount, DnsHdrNscount, DnsHdrArcount);
     }
     logContent();
 }