diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-11-04 22:59:30 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-11-04 22:59:30 +0000 |
commit | 83705d736e7e957752226de8c2165aa9ff4deeaa (patch) | |
tree | 35763ac9f5bbba31583e967fb7e199f854b50928 /nuttx/include/net/uip/uip-arp.h | |
parent | d71296f49b301d3ca8edcc6e9b79dd6b23a01c31 (diff) | |
download | px4-nuttx-83705d736e7e957752226de8c2165aa9ff4deeaa.tar.gz px4-nuttx-83705d736e7e957752226de8c2165aa9ff4deeaa.tar.bz2 px4-nuttx-83705d736e7e957752226de8c2165aa9ff4deeaa.zip |
Integrating with DM320
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@368 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/net/uip/uip-arp.h')
-rw-r--r-- | nuttx/include/net/uip/uip-arp.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/nuttx/include/net/uip/uip-arp.h b/nuttx/include/net/uip/uip-arp.h index e7c636357..9ee7f3254 100644 --- a/nuttx/include/net/uip/uip-arp.h +++ b/nuttx/include/net/uip/uip-arp.h @@ -35,17 +35,24 @@ #define __UIP_ARP_H__ #include <sys/types.h> +#include <nuttx/compiler.h> #include <net/uip/uip.h> -/* The Ethernet header */ +/* The Ethernet header -- 14 bytes. The first two fields are type 'struct + * uip_eth_addr but are represented as a simple byte array here because + * some compilers refuse to pack 6 byte structures. + */ struct uip_eth_hdr { - struct uip_eth_addr dest; - struct uip_eth_addr src; - uint16 type; + + uint8 dest[6]; /* Ethernet destination address (6 bytes) */ + uint8 src[6]; /* Ethernet source address (6 bytes) */ + uint16 type; /* Type code (2 bytes) */ }; +/* Recognized values of the type bytes in the Ethernet header */ + #define UIP_ETHTYPE_ARP 0x0806 #define UIP_ETHTYPE_IP 0x0800 #define UIP_ETHTYPE_IP6 0x86dd |