1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-15 01:23:49 +01:00
RIOT/sys/include/net/ethernet.h
Marian Buschsieweke cac44edec7
tree-wide: replace multiple empty lines with one
For each C source/header `$file`: `sed -e '/^$/N;/^\n$/D' -i $file`.
2025-05-21 22:51:04 +02:00

55 lines
1.3 KiB
C

/*
* Copyright (C) 2015 Martine Lenders <mlenders@inf.fu-berlin.de>
*
* This file is subject to the terms and conditions of the GNU Lesser General
* Public License v2.1. See the file LICENSE in the top level directory for
* more details.
*/
#pragma once
/**
* @defgroup net_ethernet Ethernet
* @ingroup net
* @brief Provides Ethernet header and helper functions
* @{
*
* @file
* @brief Definitions for Ethernet
*
* @author Martine Lenders <mlenders@inf.fu-berlin.de>
*/
#include <stdint.h>
#include "net/ethernet/hdr.h"
#include "net/eui64.h"
#ifdef __cplusplus
extern "C" {
#endif
#define ETHERNET_DATA_LEN (1500) /**< maximum number of bytes in payload */
#define ETHERNET_FCS_LEN (4) /**< number of bytes in the FCS
* (frame check sequence) */
/**
* @brief maximum number of bytes in an ethernet frame (without FCS)
*/
#define ETHERNET_FRAME_LEN (ETHERNET_DATA_LEN + sizeof(ethernet_hdr_t))
#define ETHERNET_MIN_LEN (64) /**< minimum number of bytes in an
* ethernet frame (with FCF) */
/**
* @brief maximum number of bytes in an ethernet frame (with FCF)
*/
#define ETHERNET_MAX_LEN (ETHERNET_FRAME_LEN + ETHERNET_FCS_LEN)
#ifdef __cplusplus
}
#endif
/**
* @}
*/