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
Diff: udp/dns/dnsquery.cpp
- Revision:
- 57:e0fb648acf48
- Parent:
- 49:1a6336f2b3f9
- Child:
- 59:e0e556c8bd46
--- a/udp/dns/dnsquery.cpp Tue Nov 14 17:43:08 2017 +0000 +++ b/udp/dns/dnsquery.cpp Tue Nov 28 17:05:46 2017 +0000 @@ -130,7 +130,9 @@ if (!DnsQueryIsBusy) return DO_NOTHING; if (DnsQueryProtocol == DNS_PROTOCOL_UDNS && DhcpLocalIp == 0) return DO_NOTHING; - if (DnsQueryTrace) logQuery(); + NetTraceHostCheckIp6(DnsQueryIp6); + + if (DnsQueryTrace || NetTraceHostGetMatched()) logQuery(); static uint16_t id = 0; DnsHdrId = ++id; @@ -158,7 +160,7 @@ DnsQueryIsBusy = false; - if (DnsQueryTrace) DnsHdrLog(DnsQueryProtocol); + if (DnsQueryTrace || NetTraceHostGetMatched()) DnsHdrLog(DnsQueryProtocol); int dest = DO_NOTHING; @@ -172,5 +174,5 @@ return DO_NOTHING; } - return ActionMakeFromDestAndTrace(dest, DnsQueryTrace); + return ActionMakeFromDestAndTrace(dest, DnsQueryTrace || NetTraceHostGetMatched()); }