1*433d6423SLionel Sambuc /* 2*433d6423SLionel Sambuc server/ip/gen/ether.h 3*433d6423SLionel Sambuc */ 4*433d6423SLionel Sambuc 5*433d6423SLionel Sambuc #ifndef __SERVER__IP__GEN__ETHER_H__ 6*433d6423SLionel Sambuc #define __SERVER__IP__GEN__ETHER_H__ 7*433d6423SLionel Sambuc 8*433d6423SLionel Sambuc #define ETH_MIN_PACK_SIZE 60 9*433d6423SLionel Sambuc #define ETH_MAX_PACK_SIZE 1514 10*433d6423SLionel Sambuc #define ETH_MAX_PACK_SIZE_TAGGED 1518 11*433d6423SLionel Sambuc #define ETH_HDR_SIZE 14 12*433d6423SLionel Sambuc #define ETH_CRC_SIZE 4 13*433d6423SLionel Sambuc 14*433d6423SLionel Sambuc typedef u16_t ether_type_t; 15*433d6423SLionel Sambuc 16*433d6423SLionel Sambuc #define ETH_ARP_PROTO 0x806 17*433d6423SLionel Sambuc #define ETH_IP_PROTO 0x800 18*433d6423SLionel Sambuc #define ETH_VLAN_PROTO 0x8100 19*433d6423SLionel Sambuc 20*433d6423SLionel Sambuc /* Tag Control Information field for VLAN and Priority tagging */ 21*433d6423SLionel Sambuc #define ETH_TCI_PRIO_MASK 0xe000 22*433d6423SLionel Sambuc #define ETH_TCI_CFI 0x1000 /* Canonical Formal Indicator */ 23*433d6423SLionel Sambuc #define ETH_TCI_VLAN_MASK 0x0fff /* 12-bit vlan number */ 24*433d6423SLionel Sambuc 25*433d6423SLionel Sambuc #endif /* __SERVER__IP__GEN__ETHER_H__ */ 26*433d6423SLionel Sambuc 27*433d6423SLionel Sambuc /* 28*433d6423SLionel Sambuc * $PchId: ether.h,v 1.6 2005/01/27 17:33:35 philip Exp $ 29*433d6423SLionel Sambuc */ 30