Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
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
21
#ifndef NET_ETHERNET_H
22
#define NET_ETHERNET_H
23
24
#include <stdint.h>
25
26
#include "
net/ethernet/hdr.h
"
27
#include "
net/eui64.h
"
28
29
#ifdef __cplusplus
30
extern
"C"
{
31
#endif
32
33
#define ETHERNET_DATA_LEN (1500)
34
#define ETHERNET_FCS_LEN (4)
40
#define ETHERNET_FRAME_LEN (ETHERNET_DATA_LEN + sizeof(ethernet_hdr_t))
41
#define ETHERNET_MIN_LEN (64)
47
#define ETHERNET_MAX_LEN (ETHERNET_FRAME_LEN + ETHERNET_FCS_LEN)
48
49
#ifdef __cplusplus
50
}
51
#endif
52
53
#endif
/* NET_ETHERNET_H */
eui64.h
EUI-64 data type definition.
hdr.h
Ethernet header definitions.
Generated on Fri Nov 15 2024 22:46:38 by
1.9.8