16#ifndef ZEPHYR_INCLUDE_NET_ETHERNET_BRIDGE_H_
17#define ZEPHYR_INCLUDE_NET_ETHERNET_BRIDGE_H_
37#if defined(CONFIG_NET_ETHERNET_BRIDGE)
38#define NET_ETHERNET_BRIDGE_ETH_INTERFACE_COUNT CONFIG_NET_ETHERNET_BRIDGE_ETH_INTERFACE_COUNT
40#define NET_ETHERNET_BRIDGE_ETH_INTERFACE_COUNT 1
43struct eth_bridge_iface_context {
51 struct net_if *eth_iface[NET_ETHERNET_BRIDGE_ETH_INTERFACE_COUNT];
int eth_bridge_iface_add(struct net_if *br, struct net_if *iface)
Add an Ethernet network interface to a bridge.
void net_eth_bridge_foreach(eth_bridge_cb_t cb, void *user_data)
Go through all the bridge context instances in order to get information about them.
int eth_bridge_iface_remove(struct net_if *br, struct net_if *iface)
Remove an Ethernet network interface from a bridge.
struct net_if * eth_bridge_get_by_index(int index)
Get bridge instance according to index.
void(* eth_bridge_cb_t)(struct eth_bridge_iface_context *br, void *user_data)
Callback used while iterating over bridge instances.
Definition ethernet_bridge.h:127
int eth_bridge_get_index(struct net_if *br)
Get bridge index according to pointer.
Mutex Structure.
Definition kernel.h:3004
Network Interface structure.
Definition net_if.h:692