Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ethernet_bridge.h File Reference

Ethernet Bridge public header file. More...

Go to the source code of this file.

Typedefs

typedef void(* eth_bridge_cb_t) (struct eth_bridge_iface_context *br, void *user_data)
 Callback used while iterating over bridge instances.

Functions

int eth_bridge_iface_add (struct net_if *br, struct net_if *iface)
 Add an Ethernet network interface to a bridge.
int eth_bridge_iface_remove (struct net_if *br, struct net_if *iface)
 Remove an Ethernet network interface from a bridge.
int eth_bridge_get_index (struct net_if *br)
 Get bridge index according to pointer.
struct net_ifeth_bridge_get_by_index (int index)
 Get bridge instance according to index.
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.
static bool net_eth_iface_is_bridged (struct ethernet_context *ctx)
 Check if the iface is bridged.
static struct net_ifnet_eth_get_bridge (struct ethernet_context *ctx)
 Get bridge iface.
enum net_verdict eth_bridge_input_process (struct net_if *iface, struct net_pkt *pkt)
 Process pkt received on bridged interface.

Detailed Description

Ethernet Bridge public header file.

Ethernet Bridges connect two or more Ethernet networks together and transparently forward packets from one network to the others as if they were part of the same network.