Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: oldheating gps motorhome heating
Diff: udp/dns/dnsserver.cpp
- Revision:
- 57:e0fb648acf48
- Parent:
- 44:83ce5ace337b
- Child:
- 59:e0e556c8bd46
--- a/udp/dns/dnsserver.cpp Tue Nov 14 17:43:08 2017 +0000 +++ b/udp/dns/dnsserver.cpp Tue Nov 28 17:05:46 2017 +0000 @@ -168,7 +168,7 @@ { if (*pSize > 512) { - if (DnsServerTrace) + if (DnsServerTrace || NetTraceHostGetMatched()) { if (NetTraceNewLine) Log("\r\n"); LogTimeF("DnsServer length %d too long\r\n", *pSize ); @@ -183,7 +183,7 @@ if (readQuestions()) return DO_NOTHING; if (!answerCount) return DO_NOTHING; - if (DnsServerTrace) + if (DnsServerTrace || NetTraceHostGetMatched()) { if (NetTraceNewLine) Log("\r\n"); LogTimeF("DnsServer received query\r\n"); @@ -199,11 +199,11 @@ *pSize = p - DnsHdrPacket; - if (DnsServerTrace) DnsHdrLog(dnsProtocol); + if (DnsServerTrace || NetTraceHostGetMatched()) DnsHdrLog(dnsProtocol); int dest; if (dnsProtocol == DNS_PROTOCOL_MDNS && !mdnsUnicastReply) dest = MULTICAST_MDNS; else dest = UNICAST; - return ActionMakeFromDestAndTrace(dest, NetTraceStack && DnsServerTrace); + return ActionMakeFromDestAndTrace(dest, NetTraceStack && DnsServerTrace || NetTraceHostGetMatched()); }