diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-06-06 18:18:58 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-06-06 18:18:58 -0600 |
commit | db07a02d637858044371e23e39de1f43f0ab08e2 (patch) | |
tree | 0f0fde225197a8f28a31c2959052375fc2574a17 /nuttx/include | |
parent | 0011651c0c26e3f686887d89fd93a6650ba4426d (diff) | |
download | nuttx-db07a02d637858044371e23e39de1f43f0ab08e2.tar.gz nuttx-db07a02d637858044371e23e39de1f43f0ab08e2.tar.bz2 nuttx-db07a02d637858044371e23e39de1f43f0ab08e2.zip |
Add Ethernet definitions
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/nuttx/net/arp.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/nuttx/include/nuttx/net/arp.h b/nuttx/include/nuttx/net/arp.h index 52051a52e..e0fea967d 100644 --- a/nuttx/include/nuttx/net/arp.h +++ b/nuttx/include/nuttx/net/arp.h @@ -60,9 +60,13 @@ /* 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 +#define UIP_ETHTYPE_ARP 0x0806 /* Address resolution protocol */ +#define UIP_ETHTYPE_IP 0x0800 /* IP protocol */ +#define UIP_ETHTYPE_IP6 0x86dd /* IP protocol version 6 */ + +/* Size of the Ethernet header */ + +#define UIP_ETHH_LEN 14 /* Minimum size: 2*6 + 2 */ /**************************************************************************** * Public Types |