Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
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
9
#pragma once
10
23
#include <stdint.h>
24
25
#include "
net/ethernet/hdr.h
"
26
#include "
net/eui64.h
"
27
28
#ifdef __cplusplus
29
extern
"C"
{
30
#endif
31
32
#define ETHERNET_DATA_LEN (1500)
33
#define ETHERNET_FCS_LEN (4)
39
#define ETHERNET_FRAME_LEN (ETHERNET_DATA_LEN + sizeof(ethernet_hdr_t))
40
#define ETHERNET_MIN_LEN (64)
46
#define ETHERNET_MAX_LEN (ETHERNET_FRAME_LEN + ETHERNET_FCS_LEN)
47
48
#ifdef __cplusplus
49
}
50
#endif
51
eui64.h
EUI-64 data type definition.
hdr.h
Ethernet header definitions.
Generated on Sat Jun 28 2025 19:41:34 by
1.9.1