Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ethernet_bridge_fdb.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: Copyright 2026 NXP
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
11
12#ifndef ZEPHYR_INCLUDE_NET_ETHERNET_BRIDGE_FDB_H_
13#define ZEPHYR_INCLUDE_NET_ETHERNET_BRIDGE_FDB_H_
14
23
24#include <zephyr/net/net_if.h>
25#include <zephyr/net/ethernet.h>
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
34#define ETHERNET_BRIDGE_FDB_FLAG_STATIC BIT(0)
35#define ETHERNET_BRIDGE_FDB_FLAG_DYNAMIC BIT(1)
36
50
58int eth_bridge_fdb_add(struct net_eth_addr *mac, struct net_if *iface);
59
67int eth_bridge_fdb_del(struct net_eth_addr *mac, struct net_if *iface);
68
76
83typedef void (*eth_bridge_fdb_entry_cb_t)(struct eth_bridge_fdb_entry *entry, void *user_data);
84
92
96
97#endif /* ZEPHYR_INCLUDE_NET_ETHERNET_BRIDGE_FDB_H_ */
Ethernet.
void(* eth_bridge_fdb_entry_cb_t)(struct eth_bridge_fdb_entry *entry, void *user_data)
Callback function type for iterating over FDB entries.
Definition ethernet_bridge_fdb.h:83
int eth_bridge_fdb_del(struct net_eth_addr *mac, struct net_if *iface)
Delete an FDB entry.
int eth_bridge_fdb_del_iface(struct net_if *iface)
Delete FDB entries on an interface.
void eth_bridge_fdb_foreach(eth_bridge_fdb_entry_cb_t cb, void *user_data)
Iterate over all entries in the FDB table.
int eth_bridge_fdb_add(struct net_eth_addr *mac, struct net_if *iface)
Add a static FDB entry.
struct _snode sys_snode_t
Single-linked list node structure.
Definition slist.h:39
Public API for network interface.
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
FDB entry structure.
Definition ethernet_bridge_fdb.h:40
uint8_t flags
Entry flags.
Definition ethernet_bridge_fdb.h:46
struct net_eth_addr mac
MAC address.
Definition ethernet_bridge_fdb.h:42
sys_snode_t node
Linked list node.
Definition ethernet_bridge_fdb.h:48
struct net_if * iface
Interface.
Definition ethernet_bridge_fdb.h:44
Ethernet address.
Definition ethernet.h:54
Network Interface structure.
Definition net_if.h:726