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/dnshdr.cpp
- Revision:
- 35:93c39d260a83
- Parent:
- 33:714a0345e59b
- Child:
- 37:793b39683406
diff -r e3a7bff69bfc -r 93c39d260a83 udp/dns/dnshdr.cpp --- a/udp/dns/dnshdr.cpp Fri Sep 01 15:06:59 2017 +0000 +++ b/udp/dns/dnshdr.cpp Fri Sep 22 13:55:56 2017 +0000 @@ -85,17 +85,11 @@ LogTimeF("%s %s\r\n", text, title); if (EthProtocol == IPV6) { - Ip6AddressToString(Ip6Src, sizeof(text), text); - LogF(" IP: src %s;", text); - Ip6AddressToString(Ip6Dst, sizeof(text), text); - LogF(" dst %s\r\n", text); + Log(" IP: src "); Ip6LogHeaderSrc(); Log(" dst "); Ip6LogHeaderDst(); Log("\r\n"); } else if (EthProtocol == IPV4) { - Ip4AddressToString(Ip4Src, sizeof(text), text); - LogF(" IP: src %s;", text); - Ip4AddressToString(Ip4Dst, sizeof(text), text); - LogF(" dst %s\r\n", text); + Log(" IP: src "); Ip4LogHeaderSrc(); Log(" dst "); Ip4LogHeaderDst(); Log("\r\n"); } else {