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
--- a/UDPv4.cpp	Sun Jun 12 20:24:23 2011 +0000
+++ b/UDPv4.cpp	Mon Jun 13 13:13:59 2011 +0000
@@ -20,7 +20,7 @@
 
 
 static void Init(void);
-static void Handler(NetIF_t *netIF, Packet_t *packet);
+static void Handler(NetIF_t *netIF, NetPacket_t *packet);
 static int32_t RegisterAPI(Net_API_t *api);
 
 
@@ -48,7 +48,7 @@
 }
 
 
-static void Handler(NetIF_t *netIF, Packet_t *packet)
+static void Handler(NetIF_t *netIF, NetPacket_t *packet)
 {
     IPv4_Header_t    *ipv4Header;
     int32_t            depth, index;