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

Revision:
29:39277bf2003d
Parent:
22:914b970356f0
Child:
30:e34173b7585c
--- a/ip6/ip6.cpp	Mon Jul 24 15:27:36 2017 +0000
+++ b/ip6/ip6.cpp	Mon Aug 07 12:13:52 2017 +0000
@@ -8,7 +8,7 @@
 #include     "eth.h"
 #include      "ip.h"
 #include     "ip6.h"
-#include     "ndp.h"
+#include      "ra.h"
 #include      "io.h"
 
 #define DEBUG false
@@ -61,7 +61,7 @@
     switch (action)
     {
         case   UNICAST:                                            break;
-        case   UNICAST_DNS:    memcpy(pDstIp, NdpDnsServer,  16);  break;
+        case   UNICAST_DNS:    memcpy(pDstIp, RaDnsServer,   16);  break;
         case MULTICAST_NODE:   memcpy(pDstIp, Ip6AllNodes,   16);  break;
         case MULTICAST_ROUTER: memcpy(pDstIp, Ip6AllRouters, 16);  break;
         case MULTICAST_MDNS:   memcpy(pDstIp, Ip6Mdns,       16);  break;