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.
Diff: net/arp.h
- Revision:
- 3:c32d9660b888
- Parent:
- 2:e8e09adc41fc
- Child:
- 5:c56386b9fc33
diff -r e8e09adc41fc -r c32d9660b888 net/arp.h --- a/net/arp.h Tue Oct 12 06:10:41 2010 +0000 +++ b/net/arp.h Tue Oct 12 06:14:19 2010 +0000 @@ -1,13 +1,13 @@ +/// ARP Packet + #ifndef ARP_H #define ARP_H #include "net.h" -/// \file ARP packet - #define ETHERTYPE_ARP 0x0806 -/// ARP Packet +/// ARP Packet memory map typedef struct { u16 hardware_type; ///< 0x0001 for ethernet u16 protocol_type; ///< 0x0800 for IPv4