Line | |
---|
1 | /*
|
---|
2 | server/ip/gen/ether.h
|
---|
3 | */
|
---|
4 |
|
---|
5 | #ifndef __SERVER__IP__GEN__ETHER_H__
|
---|
6 | #define __SERVER__IP__GEN__ETHER_H__
|
---|
7 |
|
---|
8 | #define ETH_MIN_PACK_SIZE 60
|
---|
9 | #define ETH_MAX_PACK_SIZE 1514
|
---|
10 | #define ETH_MAX_PACK_SIZE_TAGGED 1518
|
---|
11 | #define ETH_HDR_SIZE 14
|
---|
12 | #define ETH_CRC_SIZE 4
|
---|
13 |
|
---|
14 | typedef struct ether_addr
|
---|
15 | {
|
---|
16 | u8_t ea_addr[6];
|
---|
17 | } ether_addr_t;
|
---|
18 |
|
---|
19 | typedef u16_t ether_type_t;
|
---|
20 | typedef U16_t Ether_type_t;
|
---|
21 |
|
---|
22 | #define ETH_ARP_PROTO 0x806
|
---|
23 | #define ETH_IP_PROTO 0x800
|
---|
24 | #define ETH_VLAN_PROTO 0x8100
|
---|
25 |
|
---|
26 | /* Tag Control Information field for VLAN and Priority tagging */
|
---|
27 | #define ETH_TCI_PRIO_MASK 0xe000
|
---|
28 | #define ETH_TCI_CFI 0x1000 /* Canonical Formal Indicator */
|
---|
29 | #define ETH_TCI_VLAN_MASK 0x0fff /* 12-bit vlan number */
|
---|
30 |
|
---|
31 | #endif /* __SERVER__IP__GEN__ETHER_H__ */
|
---|
32 |
|
---|
33 | /*
|
---|
34 | * $PchId: ether.h,v 1.6 2005/01/27 17:33:35 philip Exp $
|
---|
35 | */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.