Home
last modified time | relevance | path

Searched refs:br_attrs (Results 1 – 1 of 1) sorted by relevance

/external/libnl/lib/route/link/
Dbridge.c134 struct nlattr *br_attrs[IFLA_BRPORT_MAX+1]; in bridge_parse_protinfo() local
148 if ((err = nla_parse_nested(br_attrs, IFLA_BRPORT_MAX, attr, in bridge_parse_protinfo()
154 if (br_attrs[IFLA_BRPORT_STATE]) { in bridge_parse_protinfo()
155 bd->b_port_state = nla_get_u8(br_attrs[IFLA_BRPORT_STATE]); in bridge_parse_protinfo()
159 if (br_attrs[IFLA_BRPORT_PRIORITY]) { in bridge_parse_protinfo()
160 bd->b_priority = nla_get_u16(br_attrs[IFLA_BRPORT_PRIORITY]); in bridge_parse_protinfo()
164 if (br_attrs[IFLA_BRPORT_COST]) { in bridge_parse_protinfo()
165 bd->b_cost = nla_get_u32(br_attrs[IFLA_BRPORT_COST]); in bridge_parse_protinfo()
169 check_flag(link, br_attrs, IFLA_BRPORT_MODE, RTNL_BRIDGE_HAIRPIN_MODE); in bridge_parse_protinfo()
170 check_flag(link, br_attrs, IFLA_BRPORT_GUARD, RTNL_BRIDGE_BPDU_GUARD); in bridge_parse_protinfo()
[all …]