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
9#pragma once
10
22
23#include <stdint.h>
24
25#include "net/ethernet/hdr.h"
26#include "net/eui64.h"
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32#define ETHERNET_DATA_LEN (1500)
33#define ETHERNET_FCS_LEN (4)
35
39#define ETHERNET_FRAME_LEN (ETHERNET_DATA_LEN + sizeof(ethernet_hdr_t))
40#define ETHERNET_MIN_LEN (64)
42
46#define ETHERNET_MAX_LEN (ETHERNET_FRAME_LEN + ETHERNET_FCS_LEN)
47
48#ifdef __cplusplus
49}
50#endif
51
EUI-64 data type definition.
Ethernet header definitions.