Lines Matching defs:bridge
39 * @defgroup bridgeif IEEE 802.1D bridge
41 * This file implements an IEEE 802.1D bridge by using a multilayer netif approach
42 * (one hardware-independent netif for the bridge that uses hardware netifs for its ports).
43 * On transmit, the bridge selects the outgoing port(s).
44 * On receive, the port netif calls into the bridge (via its netif->input function) and
45 * the bridge selects the port(s) (and/or its netif->input function) to pass the received pbuf to.
48 * - add the port netifs just like you would when using them as dedicated netif without a bridge
49 * - only NETIF_FLAG_ETHARP/NETIF_FLAG_ETHERNET netifs are supported as bridge ports
50 * - add the bridge port netifs without IPv4 addresses (i.e. pass 'NULL, NULL, NULL')
52 * - set up the bridge configuration in a global variable of type 'bridgeif_initdata_t' that contains
53 * - the MAC address of the bridge
56 * - e.g. for a bridge MAC address 00-01-02-03-04-05, 2 bridge ports, 1024 FDB entries + 16 static MAC entries:
58 * - add the bridge netif (with IPv4 config):
63 * - set up all ports netifs and the bridge netif
66 * to prevent ETHARP working on that port netif (we only want one IP per bridge not per port).
67 * - When adding a port netif, its input function is changed to call into the bridge.
99 struct bridgeif_private_s *bridge;
122 /* netif data index to get the bridge on input */
221 /** Helper function to see if a destination mac belongs to the bridge
222 * (bridge netif or one of the port netifs), in which case the frame
293 /** Output function of the application port of the bridge (the one with an ip address).
322 /** The actual bridge input function. Port netif's input is changed to call
338 if (port == NULL || port->bridge == NULL) {
341 br = (bridgeif_private_t *)port->bridge;
404 * to @ref netif_add when adding the bridge. I supplies MAC address
521 * Add a port to the bridge
546 port->bridge = br;
555 /* store pointer to bridge in netif */