ethernet.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2015 Martine Lenders <mlenders@inf.fu-berlin.de>
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
20 #include <stdint.h>
21 
22 #include "net/ethernet/hdr.h"
23 #include "net/eui64.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 #define ETHERNET_DATA_LEN (1500)
30 #define ETHERNET_FCS_LEN (4)
36 #define ETHERNET_FRAME_LEN (ETHERNET_DATA_LEN + sizeof(ethernet_hdr_t))
37 #define ETHERNET_MIN_LEN (64)
43 #define ETHERNET_MAX_LEN (ETHERNET_FRAME_LEN + ETHERNET_FCS_LEN)
44 
45 #ifdef __cplusplus
46 }
47 #endif
48 
EUI-64 data type definition.
Ethernet header definitions.