ether.h

Go to the documentation of this file.
00001 /*
00002 server/ip/gen/ether.h
00003 */
00004 
00005 #ifndef __SERVER__IP__GEN__ETHER_H__
00006 #define __SERVER__IP__GEN__ETHER_H__
00007 
00008 #define ETH_MIN_PACK_SIZE                 60
00009 #define ETH_MAX_PACK_SIZE               1514
00010 #define ETH_MAX_PACK_SIZE_TAGGED        1518
00011 #define ETH_HDR_SIZE                      14
00012 #define ETH_CRC_SIZE                       4
00013 
00014 typedef struct ether_addr
00015 {
00016         u8_t ea_addr[6];
00017 } ether_addr_t;
00018 
00019 typedef u16_t ether_type_t;
00020 typedef U16_t Ether_type_t;
00021 
00022 #define ETH_ARP_PROTO    0x806
00023 #define ETH_IP_PROTO     0x800
00024 #define ETH_VLAN_PROTO  0x8100
00025 
00026 /* Tag Control Information field for VLAN and Priority tagging */
00027 #define ETH_TCI_PRIO_MASK       0xe000
00028 #define ETH_TCI_CFI             0x1000  /* Canonical Formal Indicator */
00029 #define ETH_TCI_VLAN_MASK       0x0fff  /* 12-bit vlan number */
00030 
00031 #endif /* __SERVER__IP__GEN__ETHER_H__ */
00032 
00033 /*
00034  * $PchId: ether.h,v 1.6 2005/01/27 17:33:35 philip Exp $
00035  */

Generated on Fri Apr 14 22:57:21 2006 for minix by  doxygen 1.4.6