From 1dd8300e69315f4e2f0e77d5939e8efc839ccf28 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Fri, 29 Jan 2010 14:41:54 +0000 Subject: [PATCH] Added comments --- src/include/netif/etharp.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/include/netif/etharp.h b/src/include/netif/etharp.h index b895a677..f54de693 100644 --- a/src/include/netif/etharp.h +++ b/src/include/netif/etharp.h @@ -72,6 +72,7 @@ PACK_STRUCT_END # include "arch/bpstruct.h" #endif PACK_STRUCT_BEGIN +/** Ethernet header */ struct eth_hdr { #if ETH_PAD_SIZE PACK_STRUCT_FIELD(u8_t padding[ETH_PAD_SIZE]); @@ -93,6 +94,9 @@ PACK_STRUCT_END # include "arch/bpstruct.h" #endif PACK_STRUCT_BEGIN +/** VLAN header inserted between ethernet header and payload + * if 'type' in ethernet header is ETHTYPE_VLAN. + * See IEEE802.Q */ struct eth_vlan_hdr { PACK_STRUCT_FIELD(u16_t tpid); PACK_STRUCT_FIELD(u16_t prio_vid); @@ -111,7 +115,7 @@ PACK_STRUCT_END # include "arch/bpstruct.h" #endif PACK_STRUCT_BEGIN -/** the ARP message */ +/** the ARP message, see RFC 826 ("Packet format") */ struct etharp_hdr { PACK_STRUCT_FIELD(u16_t hwtype); PACK_STRUCT_FIELD(u16_t proto);