X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=zebra%2Fzebra_l2.h;h=68c9d4a7a1a72bbf072da5a105aabd4a04eb2179;hb=2569910bb6e5c00ececc60ed15b182e14a88cb9d;hp=d9bbcfed6fc48c344161e45540f421521980aa08;hpb=a0cf89eca12bc9fab8583ae0e5e60a80f9b3d875;p=mirror_frr.git diff --git a/zebra/zebra_l2.h b/zebra/zebra_l2.h index d9bbcfed6..68c9d4a7a 100644 --- a/zebra/zebra_l2.h +++ b/zebra/zebra_l2.h @@ -37,7 +37,7 @@ struct zebra_l2info_brslave { /* zebra L2 interface information - bridge interface */ struct zebra_l2info_bridge { - u_char vlan_aware; /* VLAN-aware bridge? */ + uint8_t vlan_aware; /* VLAN-aware bridge? */ }; /* zebra L2 interface information - VLAN interface */ @@ -52,6 +52,11 @@ struct zebra_l2info_vxlan { vlanid_t access_vlan; /* Access VLAN - for VLAN-aware bridge. */ }; +struct zebra_l2info_bondslave { + ifindex_t bond_ifindex; /* Bridge Master */ + struct interface *bond_if; /* Pointer to master */ +}; + union zebra_l2if_info { struct zebra_l2info_bridge br; struct zebra_l2info_vlan vl; @@ -67,10 +72,13 @@ union zebra_l2if_info { #define IS_ZEBRA_IF_BRIDGE_VLAN_AWARE(zif) ((zif)->l2info.br.vlan_aware == 1) - extern void zebra_l2_map_slave_to_bridge(struct zebra_l2info_brslave *br_slave); extern void zebra_l2_unmap_slave_from_bridge(struct zebra_l2info_brslave *br_slave); +extern void +zebra_l2_map_slave_to_bond(struct zebra_l2info_bondslave *bond_slave); +extern void +zebra_l2_unmap_slave_from_bond(struct zebra_l2info_bondslave *bond_slave); extern void zebra_l2_bridge_add_update(struct interface *ifp, struct zebra_l2info_bridge *bridge_info, int add); @@ -86,4 +94,6 @@ extern void zebra_l2_vxlanif_del(struct interface *ifp); extern void zebra_l2if_update_bridge_slave(struct interface *ifp, ifindex_t bridge_ifindex); +extern void zebra_l2if_update_bond_slave(struct interface *ifp, + ifindex_t bond_ifindex); #endif /* _ZEBRA_L2_H */