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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers dnshdr.h Source File

dnshdr.h

00001 #include <stdint.h>
00002 #include <stdbool.h>
00003 
00004 extern uint16_t DnsHdrId;
00005 
00006 extern bool     DnsHdrIsReply;
00007 extern bool     DnsHdrIsAuthoritative;
00008 extern bool     DnsHdrIsRecursiveQuery;
00009 
00010 extern uint16_t DnsHdrQdcount;
00011 extern uint16_t DnsHdrAncount;
00012 extern uint16_t DnsHdrNscount;
00013 extern uint16_t DnsHdrArcount;
00014 
00015 extern char*    DnsHdrPacket;
00016 extern char*    DnsHdrData;
00017 extern int      DnsHdrDataLength;
00018 
00019 extern void     DnsHdrSetup(void* pPacket, int lenPacket);
00020 extern void     DnsHdrRead (void);
00021 extern void     DnsHdrWrite(void);
00022 extern void     DnsHdrLog  (int ipProtocol);