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:
2:3d1c0fbd10e6
--- a/NetIF.cpp	Sun Jun 12 20:24:23 2011 +0000
+++ b/NetIF.cpp	Mon Jun 13 13:13:59 2011 +0000
@@ -40,7 +40,7 @@
 static RTOS_Mutex_t                netIF_PeriodicFunctionTableMutex;
 
 static Bool_t                    netIFLayerInitialized = False;
-static Packet_t                    rxPacket,
+static NetPacket_t                    rxPacket,
                                 txPacket;
 static int32_t                    gatewayNetIFIndex = -1;
 
@@ -412,7 +412,7 @@
 }
 
 
-void NetIF_ProtoPop(Packet_t *packet)
+void NetIF_ProtoPop(NetPacket_t *packet)
 {
     static int32_t    depth, headerSize, index;
     
@@ -440,7 +440,7 @@
 }
 
 
-void NetIF_ProtoPush(Packet_t *packet, int32_t headerSize, Protocol_ID_t protocol)
+void NetIF_ProtoPush(NetPacket_t *packet, int32_t headerSize, Protocol_ID_t protocol)
 {
     static int32_t    depth, index;