Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
ethernet_bridge.h File Reference

Ethernet Bridge public header file. More...

#include <sys/slist.h>

Go to the source code of this file.

Data Structures

struct  eth_bridge_iface_context
 
struct  eth_bridge_listener
 

Macros

#define ETH_BRIDGE_INIT(name)
 Statically define and initialize a bridge instance. More...
 

Typedefs

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

Functions

int eth_bridge_iface_add (struct eth_bridge *br, struct net_if *iface)
 Add an Ethernet network interface to a bridge. More...
 
int eth_bridge_iface_remove (struct eth_bridge *br, struct net_if *iface)
 Remove an Ethernet network interface from a bridge. More...
 
int eth_bridge_iface_allow_tx (struct net_if *iface, bool allow)
 Enable/disable transmission mode for a bridged interface. More...
 
int eth_bridge_listener_add (struct eth_bridge *br, struct eth_bridge_listener *l)
 Add (register) a listener to the bridge. More...
 
int eth_bridge_listener_remove (struct eth_bridge *br, struct eth_bridge_listener *l)
 Remove (unregister) a listener from the bridge. More...
 
int eth_bridge_get_index (struct eth_bridge *br)
 Get bridge index according to pointer. More...
 
struct eth_bridge * eth_bridge_get_by_index (int index)
 Get bridge instance according to index. More...
 
void net_eth_bridge_foreach (eth_bridge_cb_t cb, void *user_data)
 Go through all the bridge instances in order to get information about them. This is mainly useful in net-shell to print data about currently active bridges. More...
 

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.