ConOpSys V2970  P004.07
ANVILEX control operating system
Classes | Macros | Typedefs | Functions
bridgeif_fdb.c File Reference
#include "netif/bridgeif.h"
#include "lwip/sys.h"
#include "lwip/mem.h"
#include "lwip/timeouts.h"
#include <string.h>
Include dependency graph for bridgeif_fdb.c:

Classes

struct  bridgeif_dfdb_entry_s
 
struct  bridgeif_dfdb_s
 

Macros

#define BRIDGEIF_AGE_TIMER_MS   1000
 
#define BR_FDB_TIMEOUT_SEC   (60*5) /* 5 minutes FDB timeout */
 

Typedefs

typedef struct bridgeif_dfdb_entry_s bridgeif_dfdb_entry_t
 
typedef struct bridgeif_dfdb_s bridgeif_dfdb_t
 

Functions

void bridgeif_fdb_update_src (void *fdb_ptr, struct eth_addr *src_addr, u8_t port_idx)
 
bridgeif_portmask_t bridgeif_fdb_get_dst_ports (void *fdb_ptr, struct eth_addr *dst_addr)
 
static void bridgeif_fdb_age_one_second (void *fdb_ptr)
 
static void bridgeif_age_tmr (void *arg)
 
void * bridgeif_fdb_init (u16_t max_fdb_entries)
 

Detailed Description

lwIP netif implementing an FDB for IEEE 802.1D MAC Bridge

Macro Definition Documentation

◆ BR_FDB_TIMEOUT_SEC

#define BR_FDB_TIMEOUT_SEC   (60*5) /* 5 minutes FDB timeout */

◆ BRIDGEIF_AGE_TIMER_MS

#define BRIDGEIF_AGE_TIMER_MS   1000

Typedef Documentation

◆ bridgeif_dfdb_entry_t

◆ bridgeif_dfdb_t

Function Documentation

◆ bridgeif_age_tmr()

static void bridgeif_age_tmr ( void *  arg)
static

Timer callback for fdb aging, called once per second

References BRIDGEIF_AGE_TIMER_MS, bridgeif_fdb_age_one_second(), LWIP_ASSERT, and NULL.

Referenced by bridgeif_fdb_init().

Here is the call graph for this function:
Here is the caller graph for this function: