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.h
- Revision:
- 13:9cd54f7db57a
- Child:
- 15:6ca6778168b1
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/udp/dns/dnshdr.h Mon May 01 18:20:55 2017 +0000 @@ -0,0 +1,20 @@ +#include "mbed.h" + +extern uint16_t DnsHdrId; + +extern bool DnsHdrIsReply; +extern bool DnsHdrIsAuthoritative; +extern bool DnsHdrIsRecursiveQuery; + +extern uint16_t DnsHdrQdcount; +extern uint16_t DnsHdrAncount; +extern uint16_t DnsHdrNscount; +extern uint16_t DnsHdrArcount; + +extern char* DnsHdrPacket; +extern char* DnsHdrData; + +extern void DnsHdrSetup(void* pPacket); +extern void DnsHdrRead (); +extern void DnsHdrWrite(); +extern void DnsHdrLog (char* title, int protocol);