X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fl2%2Fl2_bd.h;h=35c0e0bf0a16a2df86f779cfdad1fe90517e6cdd;hb=cbe25aab3be72154f2c706c39eeba6a77f34450f;hp=226e30ecfd4cdec9c52cf95c38ec7e8f8fbceccb;hpb=b474380f82b75d9640f9bf6ee78c891a6794dbfb;p=vpp.git diff --git a/src/vnet/l2/l2_bd.h b/src/vnet/l2/l2_bd.h index 226e30ecfd4..35c0e0bf0a1 100644 --- a/src/vnet/l2/l2_bd.h +++ b/src/vnet/l2/l2_bd.h @@ -20,6 +20,8 @@ #include #include +#include +#include typedef enum l2_bd_port_type_t_ { @@ -121,6 +123,7 @@ typedef struct u8 forward; u8 learn; u8 arp_term; + u8 arp_ufwd; u8 mac_age; u8 *bd_tag; u8 is_add; @@ -150,6 +153,7 @@ typedef enum bd_flags_t_ L2_FLOOD = (1 << 2), L2_UU_FLOOD = (1 << 3), L2_ARP_TERM = (1 << 4), + L2_ARP_UFWD = (1 << 5), } bd_flags_t; u32 bd_set_flags (vlib_main_t * vm, u32 bd_index, bd_flags_t flags, @@ -198,7 +202,11 @@ bd_find_or_add_bd_index (bd_main_t * bdm, u32 bd_id) } u32 bd_add_del_ip_mac (u32 bd_index, - u8 * ip_addr, u8 * mac_addr, u8 is_ip6, u8 is_add); + ip46_type_t type, + const ip46_address_t * ip_addr, + const mac_address_t * mac, u8 is_add); + +void bd_flush_ip_mac (u32 bd_index); #endif