Loading...
Searching...
No Matches
eth.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2015 Kaspar Schleiser <kaspar@schleiser.de>
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
18
19#include <stdint.h>
20
21#include "net/netdev.h"
22#include "net/netopt.h"
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
32#define NETDEV_ETH_RX_INFO_FLAG_TIMESTAMP (0x01)
34
38typedef struct {
43 uint64_t timestamp;
44 uint8_t flags;
46
62int netdev_eth_get(netdev_t *dev, netopt_t opt, void *value, size_t max_len);
63
75int netdev_eth_set(netdev_t *dev, netopt_t opt, const void *value, size_t value_len);
76
77#ifdef __cplusplus
78}
79#endif
80
Definitions low-level network driver interface.
struct netdev netdev_t
Forward declaration for netdev struct.
Definition netdev.h:285
int netdev_eth_get(netdev_t *dev, netopt_t opt, void *value, size_t max_len)
Fallback function for netdev ethernet devices' _get function.
int netdev_eth_set(netdev_t *dev, netopt_t opt, const void *value, size_t value_len)
Fallback function for netdev ethernet devices' _set function.
netopt_t
Global list of configuration options available throughout the network stack, e.g.
Definition netopt.h:44
Definition of global configuration options.
Received frame status information for Ethernet devices.
Definition eth.h:38
uint64_t timestamp
Time of the reception of the start of frame delimiter in nanoseconds since epoch.
Definition eth.h:43
uint8_t flags
Flags e.g.
Definition eth.h:44