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:
3:c32d9660b888
Parent:
2:e8e09adc41fc
Child:
6:66c4cd9073aa
--- a/net/ip.h	Tue Oct 12 06:10:41 2010 +0000
+++ b/net/ip.h	Tue Oct 12 06:14:19 2010 +0000
@@ -13,7 +13,7 @@
   unsigned char octet[4]; ///< Individual address octets
 } IP_Address;
 
-/// Memory map of IP Packet - Some may not work (see comments)
+/// IP Packet memory map
 typedef struct {
   /// 4 bits that contain the version, that specifies if it's an IPv4 or IPv6 packet,
   unsigned version:4; // Only 0x4 supported
@@ -30,7 +30,7 @@
   unsigned dont_fragment:1;
   unsigned more_follow:1;
   /// 13 bits that contain the fragment offset, a field to identify position of fragment within original packet
-  unsigned fragment_offset:13; ////// This and the ones above may not work properly due to endianness
+  unsigned fragment_offset:13; ///< This and the ones above may not work properly due to endianness
   /// 8 bits that contain the Time to live (TTL) which is the number of hops (router, computer or device along a network) the packet is allowed to pass before it dies (for example, a packet with a TTL of 16 will be allowed to go across 16 routers to get to its destination before it is discarded),
   unsigned ttl:8;
   /// 8 bits that contain the protocol (TCP, UDP, ICMP, etc...)