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:
5:3cd83fcb1467
Parent:
1:f4040665bc61
Child:
7:8e12f7357b9f
--- a/IPv4.cpp	Sun Jun 12 20:24:23 2011 +0000
+++ b/IPv4.cpp	Mon Jun 13 13:13:59 2011 +0000
@@ -22,7 +22,7 @@
 
 static void 	Init(void);
 static int32_t  RegisterProtocol(Protocol_Handler_t *protocolHandler);
-static void     Handler(NetIF_t *netIF, Packet_t *packet);
+static void     Handler(NetIF_t *netIF, NetPacket_t *packet);
 
 
 static Protocol_Handler_t    *protocolHandlerTable[IPV4_PROTOCOL_MAX_COUNT];
@@ -81,7 +81,7 @@
 }
 
 
-static void Handler(NetIF_t *netIF, Packet_t *packet)
+static void Handler(NetIF_t *netIF, NetPacket_t *packet)
 {
     int32_t   			protocolIndex,
     	        		payloadOffset;