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:
57:e0fb648acf48
Parent:
54:84ef2b29cf7e
--- a/ip4/ip4addr.cpp	Tue Nov 14 17:43:08 2017 +0000
+++ b/ip4/ip4addr.cpp	Tue Nov 28 17:05:46 2017 +0000
@@ -5,6 +5,7 @@
 #include "ip4addr.h"
 #include "dhcp.h"
 #include "ntp.h"
+#include "tftp.h"
 
 int Ip4AddressToString(uint32_t ip, int size, char* text)
 {
@@ -46,6 +47,7 @@
         case UNICAST_DNS:      *pDstIp = DhcpDnsServer;               break;
         case UNICAST_DHCP:     *pDstIp = DhcpServer;                  break;
         case UNICAST_NTP:      *pDstIp = NtpServerIp4;                break;
+        case UNICAST_TFTP:     *pDstIp = TftpServerIp4;               break;
         case MULTICAST_NODE:   *pDstIp = IP4_MULTICAST_ALL_HOSTS;     break;
         case MULTICAST_ROUTER: *pDstIp = IP4_MULTICAST_ALL_ROUTERS;   break;
         case MULTICAST_MDNS:   *pDstIp = IP4_MULTICAST_DNS_ADDRESS;   break;