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

Committer:
andrewboyson
Date:
Sun Jan 10 11:52:19 2021 +0000
Revision:
182:ff48c6ea91c1
Parent:
172:9bc3c7b2cca1
Child:
189:e1c7990486c4
Updated resolve module to store either IPv4 or IPv6 addresses.; Updated Dns module to detect if a name was external or local.; Added ability to resolve a test name from the user interface.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 172:9bc3c7b2cca1 1 #include <stdint.h>
andrewboyson 172:9bc3c7b2cca1 2 #include <stdbool.h>
andrewboyson 172:9bc3c7b2cca1 3
andrewboyson 172:9bc3c7b2cca1 4 extern bool Nr4Trace; //Spare
andrewboyson 172:9bc3c7b2cca1 5 extern bool NrTrace;
andrewboyson 172:9bc3c7b2cca1 6
andrewboyson 182:ff48c6ea91c1 7 #define NR_NAME_MAX_LENGTH 32
andrewboyson 182:ff48c6ea91c1 8
andrewboyson 182:ff48c6ea91c1 9 extern char NrTest[];
andrewboyson 182:ff48c6ea91c1 10
andrewboyson 172:9bc3c7b2cca1 11 extern void NrMakeRequestForNameFromAddress6(char* address6);
andrewboyson 172:9bc3c7b2cca1 12 extern void NrMakeRequestForNameFromAddress4(uint32_t address4);
andrewboyson 172:9bc3c7b2cca1 13 extern void NrMakeRequestForAddress6FromName(char* name);
andrewboyson 172:9bc3c7b2cca1 14 extern void NrMakeRequestForAddress4FromName(char* name);
andrewboyson 172:9bc3c7b2cca1 15
andrewboyson 172:9bc3c7b2cca1 16 extern void NrAddAddress6(char* address, char* name, int dnsProtocol);
andrewboyson 172:9bc3c7b2cca1 17 extern void NrAddAddress4(uint32_t address, char* name, int dnsProtocol);
andrewboyson 172:9bc3c7b2cca1 18
andrewboyson 172:9bc3c7b2cca1 19 extern void NrAddress6ToName(char* address6, char* name);
andrewboyson 172:9bc3c7b2cca1 20 extern void NrAddress4ToName(uint32_t address4, char* name);
andrewboyson 172:9bc3c7b2cca1 21 extern void NrNameToAddress6(char* name, char* address6);
andrewboyson 172:9bc3c7b2cca1 22 extern void NrNameToAddress4(char* name, uint32_t* pAddress4);
andrewboyson 172:9bc3c7b2cca1 23
andrewboyson 172:9bc3c7b2cca1 24 extern void NrSendAjax(void);
andrewboyson 172:9bc3c7b2cca1 25
andrewboyson 172:9bc3c7b2cca1 26 extern void NrMain(void);
andrewboyson 172:9bc3c7b2cca1 27 extern void NrInit(void);