18 #ifndef included_l2bd_h 19 #define included_l2bd_h 41 #define L2_FLOOD_MEMBER_NORMAL 0 42 #define L2_FLOOD_MEMBER_BVI 1 96 #define L2_LEARN (1<<0) 98 #define L2_FLOOD (1<<2) 99 #define L2_UU_FLOOD (1<<3) 100 #define L2_ARP_TERM (1<<4) 127 u8 * ip_addr,
u8 * mac_addr,
u8 is_ip6,
u8 is_add);
l2_flood_member_t * members
void bd_add_member(l2_bridge_domain_t *bd_config, l2_flood_member_t *member)
int bd_delete_bd_index(bd_main_t *bdm, u32 bd_id)
Delete a bridge domain.
uword * bd_index_by_bd_id
u32 bd_set_flags(vlib_main_t *vm, u32 bd_index, u32 flags, u32 enable)
Set the learn/forward/flood flags for the bridge domain.
static u32 bd_is_valid(l2_bridge_domain_t *bd_config)
u32 bd_remove_member(l2_bridge_domain_t *bd_config, u32 sw_if_index)
u32 bd_add_del_ip_mac(u32 bd_index, u8 *ip_addr, u8 *mac_addr, u8 is_ip6, u8 is_add)
Add/delete IP address to MAC address mapping.
u32 bd_find_or_add_bd_index(bd_main_t *bdm, u32 bd_id)
Get or create a bridge domain.
void bd_validate(l2_bridge_domain_t *bd_config)
Init bridge domain if not done already.