This is a low-level network debugging utility that utilizes raw packet i/o to construct and deconstruct tcp, udp, ipv4, arp, and icmp packets over ethernet.

Dependencies:   mbed

Revision:
4:88fc7fa58931
Parent:
2:e8e09adc41fc
Child:
6:66c4cd9073aa
--- a/net/udp.h	Tue Oct 12 06:14:19 2010 +0000
+++ b/net/udp.h	Tue Oct 12 06:21:05 2010 +0000
@@ -9,11 +9,11 @@
 
 /// UDP Packet memory map
 typedef struct {
-  u16 source_port;
-  u16 destination_port;
-  u16 length; // entire datagram in bytes
-  u16 checksum;
-  u8 data[];
+  u16 source_port;       ///< Source port (1-65535)
+  u16 destination_port;  ///< Destination port (1-65535) 
+  u16 length;            ///< Entire datagram size in bytes
+  u16 checksum;          ///< Checksum
+  u8 data[];             ///< Data memory map
 } UDP_Packet;
 
 /// Convert from wire to host or host to wire endianness