Lines Matching refs:port

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
50 * - add the bridge port netifs without IPv4 addresses (i.e. pass 'NULL, NULL, NULL')
51 * - don't add IPv6 addresses to the port netifs!
65 * - When adding a port netif, NETIF_FLAG_ETHARP flag will be removed from a port
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.
131 * bit [BRIDGEIF_MAX_PORTS]: cpu port
194 /** Get the forwarding port(s) (as bit mask) for the specified destination mac address */
217 /* no match found: check dynamic fdb for port or fall back to flooding */
222 * (bridge netif or one of the port netifs), in which case the frame
252 /* possibly an external port */
256 /* prevent sending out to rx port */
266 LWIP_ASSERT("invalid port index", dstport_idx == BRIDGEIF_MAX_PORTS);
293 /** Output function of the application port of the bridge (the one with an ip address).
294 * The forwarding port(s) where this pbuf is sent on is/are automatically selected
332 bridgeif_port_t *port;
336 port = (bridgeif_port_t *)netif_get_client_data(netif, bridgeif_netif_client_id);
337 LWIP_ASSERT("port data not set", port != NULL);
338 if (port == NULL || port->bridge == NULL) {
341 br = (bridgeif_private_t *)port->bridge;
351 bridgeif_fdb_update_src(br->fdbd, src, port->port_num);
373 /* yes, send to cpu port only */
378 /* get dst port */
390 /** Input function for port netifs used to synchronize into tcpip_thread.
521 * Add a port to the bridge
527 bridgeif_port_t *port;
543 port = &br->ports[br->num_ports];
544 port->port_netif = portif;
545 port->port_num = br->num_ports;
546 port->bridge = br;
549 /* let the port call us on input */
556 netif_set_client_data(portif, bridgeif_netif_client_id, port);