ethernet.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Martine Lenders <mlenders@inf.fu-berlin.de>
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser General
5  * Public License v2.1. See the file LICENSE in the top level directory for
6  * more details.
7  */
8 
22 #ifndef NET_ETHERNET_H
23 #define NET_ETHERNET_H
24 
25 #include <stdint.h>
26 
27 #include "net/ethernet/hdr.h"
28 #include "net/eui64.h"
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 #define ETHERNET_DATA_LEN (1500)
35 #define ETHERNET_FCS_LEN (4)
41 #define ETHERNET_FRAME_LEN (ETHERNET_DATA_LEN + sizeof(ethernet_hdr_t))
42 #define ETHERNET_MIN_LEN (64)
48 #define ETHERNET_MAX_LEN (ETHERNET_FRAME_LEN + ETHERNET_FCS_LEN)
49 
50 #ifdef __cplusplus
51 }
52 #endif
53 
54 #endif /* NET_ETHERNET_H */
55 
hdr.h
Ethernet header definitions.
eui64.h
EUI-64 data type definition.