ReactOS 0.4.16-dev-297-gc569aee
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:

Go to the source code of this file.

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)
 
voidbridgeif_fdb_init (u16_t max_fdb_entries)
 

Detailed Description

lwIP netif implementing an FDB for IEEE 802.1D MAC Bridge

Definition in file bridgeif_fdb.c.

Macro Definition Documentation

◆ BR_FDB_TIMEOUT_SEC

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

Definition at line 52 of file bridgeif_fdb.c.

◆ BRIDGEIF_AGE_TIMER_MS

#define BRIDGEIF_AGE_TIMER_MS   1000

Definition at line 50 of file bridgeif_fdb.c.

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

Definition at line 180 of file bridgeif_fdb.c.

181{
183
184 LWIP_ASSERT("invalid arg", arg != NULL);
185
188}
#define BRIDGEIF_AGE_TIMER_MS
Definition: bridgeif_fdb.c:50
static void bridgeif_age_tmr(void *arg)
Definition: bridgeif_fdb.c:180
#define NULL
Definition: types.h:112
#define LWIP_ASSERT(message, assertion)
Definition: debug.h:116
static void bridgeif_fdb_age_one_second(void *fdb_ptr)
Definition: bridgeif_fdb.c:153

Referenced by bridgeif_age_tmr(), and bridgeif_fdb_init().