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
udp/dns/dnsquery.h@171:f708d6776752, 2020-12-12 (annotated)
- Committer:
- andrewboyson
- Date:
- Sat Dec 12 20:10:02 2020 +0000
- Revision:
- 171:f708d6776752
- Parent:
- 61:aad055f1b0d1
Modified NR to accept both IPV6 and IPV4 addresses instead of having two modules with diffrent address lengths. Encapsulated 32but address into lsb 128 bit address
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 61:aad055f1b0d1 | 1 | #include <stdint.h> |
andrewboyson | 61:aad055f1b0d1 | 2 | #include <stdbool.h> |
andrewboyson | 61:aad055f1b0d1 | 3 | |
andrewboyson | 37:793b39683406 | 4 | extern bool DnsQueryTrace; |
andrewboyson | 37:793b39683406 | 5 | |
andrewboyson | 13:9cd54f7db57a | 6 | extern uint32_t DnsQueryIp4; |
andrewboyson | 13:9cd54f7db57a | 7 | extern char DnsQueryIp6[]; |
andrewboyson | 13:9cd54f7db57a | 8 | extern char DnsQueryName[]; |
andrewboyson | 13:9cd54f7db57a | 9 | |
andrewboyson | 61:aad055f1b0d1 | 10 | extern void DnsQueryMain(void); |
andrewboyson | 13:9cd54f7db57a | 11 | |
andrewboyson | 13:9cd54f7db57a | 12 | extern bool DnsQueryIsBusy; |
andrewboyson | 13:9cd54f7db57a | 13 | |
andrewboyson | 171:f708d6776752 | 14 | extern void DnsQueryIp4FromName(char * name, int dnsProtocol, int ipProtocol); |
andrewboyson | 171:f708d6776752 | 15 | extern void DnsQueryNameFromIp4(uint32_t ip, int dnsProtocol, int ipProtocol); |
andrewboyson | 13:9cd54f7db57a | 16 | |
andrewboyson | 171:f708d6776752 | 17 | extern void DnsQueryIp6FromName(char * name, int dnsProtocol, int ipProtocol); |
andrewboyson | 171:f708d6776752 | 18 | extern void DnsQueryNameFromIp6(char* ip, int dnsProtocol, int ipProtocol); |
andrewboyson | 13:9cd54f7db57a | 19 | |
andrewboyson | 171:f708d6776752 | 20 | extern int DnsQueryPoll(int ipType, void* pPacket, int* pSize); |