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/dnshdr.h

Committer:
andrewboyson
Date:
2017-12-14
Revision:
59:e0e556c8bd46
Parent:
37:793b39683406
Child:
61:aad055f1b0d1

File content as of revision 59:e0e556c8bd46:

#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 int      DnsHdrDataLength;

extern void     DnsHdrSetup(void* pPacket, int lenPacket);
extern void     DnsHdrRead ();
extern void     DnsHdrWrite();
extern void     DnsHdrLog  (int ipProtocol);