Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
FDB example code
[IEEE 802.1D bridge]
This file implements an example for an FDB (Forwarding DataBase) More...
Functions | |
void | bridgeif_fdb_update_src (void *fdb_ptr, struct eth_addr *src_addr, u8_t port_idx) |
A real simple and slow implementation of an auto-learning forwarding database that remembers known src mac addresses to know which port to send frames destined for that mac address. | |
bridgeif_portmask_t | bridgeif_fdb_get_dst_ports (void *fdb_ptr, struct eth_addr *dst_addr) |
Walk our list of auto-learnt fdb entries and return a port to forward or BR_FLOOD if unknown. | |
static void | bridgeif_fdb_age_one_second (void *fdb_ptr) |
Aging implementation of our simple fdb. | |
void * | bridgeif_fdb_init (u16_t max_fdb_entries) |
Init our simple fdb list. |
Detailed Description
This file implements an example for an FDB (Forwarding DataBase)
Function Documentation
static void bridgeif_fdb_age_one_second | ( | void * | fdb_ptr ) | [static] |
Aging implementation of our simple fdb.
Definition at line 153 of file lwip_bridgeif_fdb.c.
bridgeif_portmask_t bridgeif_fdb_get_dst_ports | ( | void * | fdb_ptr, |
struct eth_addr * | dst_addr | ||
) |
Walk our list of auto-learnt fdb entries and return a port to forward or BR_FLOOD if unknown.
Definition at line 128 of file lwip_bridgeif_fdb.c.
void* bridgeif_fdb_init | ( | u16_t | max_fdb_entries ) |
Init our simple fdb list.
Definition at line 195 of file lwip_bridgeif_fdb.c.
void bridgeif_fdb_update_src | ( | void * | fdb_ptr, |
struct eth_addr * | src_addr, | ||
u8_t | port_idx | ||
) |
A real simple and slow implementation of an auto-learning forwarding database that remembers known src mac addresses to know which port to send frames destined for that mac address.
ATTENTION: This is meant as an example only, in real-world use, you should provide a better implementation :-)
Definition at line 76 of file lwip_bridgeif_fdb.c.
Generated on Tue Jul 12 2022 13:55:24 by
