Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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