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:
116:60521b29e4c9
Parent:
112:f8694d0b8858
Child:
136:8a65abb0dc63
diff -r 5c003909bcf3 -r 60521b29e4c9 ip4/ip4.c
--- a/ip4/ip4.c	Wed Jan 23 15:42:35 2019 +0000
+++ b/ip4/ip4.c	Fri Jan 25 17:37:51 2019 +0000
@@ -190,7 +190,7 @@
     
     if (DhcpIpNeedsToBeRouted(dstIp))
     {
-        Ar4IpToMac(DhcpRouter, macRemote);  //Send back to the router
+        Ar4IpToMac(DhcpRouterIp, macRemote);  //Send back to the router
         ttl = OFF_LINK_TTL;
     }
     else
@@ -237,12 +237,12 @@
         case UNICAST_TFTP:
             if (DhcpIpNeedsToBeRouted(dstIp))
             {
-                Ar4IpToMac(DhcpRouter, pDstMac); //send via router
+                Ar4IpToMac(DhcpRouterIp, pDstMac); //send via router
                 ttl = OFF_LINK_TTL;
             }
             else
             {
-                Ar4IpToMac(dstIp,      pDstMac); //Send direct
+                Ar4IpToMac(dstIp,        pDstMac); //Send direct
                 ttl = 255;
             }
             break;