Rewrite from scratch a TCP/IP stack for mbed. So far the following parts are usable: Drivers: - EMAC driver (from CMSIS 2.0) Protocols: - Ethernet protocol - ARP over ethernet for IPv4 - IPv4 over Ethernet - ICMPv4 over IPv4 - UDPv4 over IPv4 APIs: - Sockets for UDPv4 The structure of this stack is designed to be very modular. Each protocol can register one or more protocol to handle its payload, and in each protocol, an API can be hooked (like Sockets for example). This is an early release.

Revision:
1:f4040665bc61
Parent:
0:19f5f51584de
Child:
5:3cd83fcb1467
--- a/ARP.h	Sun Jun 12 11:23:03 2011 +0000
+++ b/ARP.h	Sun Jun 12 19:17:11 2011 +0000
@@ -59,12 +59,12 @@
 extern Protocol_Handler_t arp;
 
 
-CAPI int32_t    ARP_ResolveIPv4Address(NetIF_t *netIF, IPv4_Addr_t address, Ethernet_Addr_t *ethernetAddr);
-CAPI int32_t    ARP_AddStaticEntry(NetIF_t *netIF, IPv4_Addr_t address, const Ethernet_Addr_t *ethernetAddr);
-CAPI int32_t    ARP_RemoveEntry(const NetIF_t *netIF, IPv4_Addr_t address);
-CAPI void        ARP_InvalidateCache(Bool_t flushStaticEntries);
-CAPI void        ARP_Timer(void);
-CAPI void        ARP_DisplayCache(void);
-CAPI void         ARP_DumpHeader(const char *prefix, ARP_Header_t *arpHeader);
+int32_t    ARP_ResolveIPv4Address(NetIF_t *netIF, IPv4_Addr_t address, Ethernet_Addr_t *ethernetAddr);
+int32_t    ARP_AddStaticEntry(NetIF_t *netIF, IPv4_Addr_t address, const Ethernet_Addr_t *ethernetAddr);
+int32_t    ARP_RemoveEntry(const NetIF_t *netIF, IPv4_Addr_t address);
+void        ARP_FlushCache(Bool_t flushStaticEntries);
+void        ARP_Timer(void);
+void        ARP_DisplayCache(void);
+void         ARP_DumpHeader(const char *prefix, ARP_Header_t *arpHeader);
 
 #endif /* __ARP_H__ */