summaryrefslogtreecommitdiff
path: root/cesar/common/defs/ethernet.h
blob: 333f7cc547a1e0259137014a8123a41bf1622443 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef common_defs_ethernet_h
#define common_defs_ethernet_h
/* Cesar project {{{
 *
 * Copyright (C) 2008 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    common/defs/ethernet.h
 * \brief   Defines concerning the Ethernet Norme.
 * \ingroup common_defs
 *
 * Based on the norme 802.3
 */

/** Ethernet Mac Address size. */
#define ETH_MAC_ADDRESS_SIZE 6

/** Ethernet packet minimum size. */
#define ETH_PACKET_MIN_SIZE 60

/** Ethernet packet maximum size. */
#define ETH_PACKET_MAX_SIZE 1522

/** Ethernet VLAN Tag complete size. */
#define ETH_VLAN_TAG_SIZE 4

/** Ethernet Minimum size allowed. */
#define ETH_PACKET_MIN_SIZE_ALLOWED 14

#endif /* common_defs_ethernet_h */