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.c
- Revision:
- 128:79052cb4a41c
- Parent:
- 93:580fc113d9e9
- Child:
- 132:db2174b36a6d
diff -r fcdfbfad8770 -r 79052cb4a41c udp/dns/dnsquery.c --- a/udp/dns/dnsquery.c Fri Mar 08 18:43:56 2019 +0000 +++ b/udp/dns/dnsquery.c Mon Mar 11 16:42:45 2019 +0000 @@ -13,6 +13,7 @@ #include "slaac.h" #include "dnshdr.h" #include "dnsname.h" +#include "dnslabel.h" bool DnsQueryTrace = false; @@ -62,7 +63,7 @@ } void DnsQueryIp4FromName(char * name, int protocol) { - DnsMakeFullNameFromName(protocol, name, sizeof(DnsQueryName), DnsQueryName); + DnsLabelMakeFullNameFromName(protocol, name, sizeof(DnsQueryName), DnsQueryName); DnsQueryIp4 = 0; DnsQueryIp6[0] = 0; DnsQueryIsBusy = true; @@ -72,7 +73,7 @@ } void DnsQueryIp6FromName(char * name, int protocol) { - DnsMakeFullNameFromName(protocol, name, sizeof(DnsQueryName), DnsQueryName); + DnsLabelMakeFullNameFromName(protocol, name, sizeof(DnsQueryName), DnsQueryName); DnsQueryIp4 = 0; DnsQueryIp6[0] = 0; DnsQueryIsBusy = true;