00001
00002
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
00027 #define ETH_TCI_PRIO_MASK 0xe000
00028 #define ETH_TCI_CFI 0x1000
00029 #define ETH_TCI_VLAN_MASK 0x0fff
00030
00031 #endif
00032
00033
00034
00035