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: net.cpp
- Revision:
- 30:e34173b7585c
- Parent:
- 29:39277bf2003d
- Child:
- 35:93c39d260a83
--- a/net.cpp Mon Aug 07 12:13:52 2017 +0000 +++ b/net.cpp Thu Aug 10 17:45:37 2017 +0000 @@ -4,6 +4,7 @@ #include "tcp.h" #include "dhcp.h" #include "ar.h" +#include "dnscache.h" #include "dns.h" #include "slaac.h" #include "ra.h" @@ -85,23 +86,26 @@ int NetInit(char* name) { NetName = name; - PhyInit(); - TcpInit(); - ArInit(); - SlaacInit(); + PhyInit(); + TcpInit(); + ArInit(); + DnsCacheInit(); + SlaacInit(); return 0; } int NetMain() { - PhyMain(); - ArMain(); + PhyMain(); + ArMain(); + DnsCacheMain(); if (ClockTicked) { - DhcpTick(); - ArTick(); - DnsTick(); - RaTick(); - NtpTick(); + DhcpTick(); + ArTick(); + DnsCacheTick(); + DnsTick(); + RaTick(); + NtpTick(); } return 0; } \ No newline at end of file