Home
last modified time | relevance | path

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

/external/libnl/lib/route/link/
Dbridge.c101 struct nlattr *br_attrs[IFLA_BRPORT_MAX+1]; in bridge_parse_protinfo() local
115 if ((err = nla_parse_nested(br_attrs, IFLA_BRPORT_MAX, attr, in bridge_parse_protinfo()
121 if (br_attrs[IFLA_BRPORT_STATE]) { in bridge_parse_protinfo()
122 bd->b_port_state = nla_get_u8(br_attrs[IFLA_BRPORT_STATE]); in bridge_parse_protinfo()
126 if (br_attrs[IFLA_BRPORT_PRIORITY]) { in bridge_parse_protinfo()
127 bd->b_priority = nla_get_u16(br_attrs[IFLA_BRPORT_PRIORITY]); in bridge_parse_protinfo()
131 if (br_attrs[IFLA_BRPORT_COST]) { in bridge_parse_protinfo()
132 bd->b_cost = nla_get_u32(br_attrs[IFLA_BRPORT_COST]); in bridge_parse_protinfo()
136 check_flag(link, br_attrs, IFLA_BRPORT_MODE, RTNL_BRIDGE_HAIRPIN_MODE); in bridge_parse_protinfo()
137 check_flag(link, br_attrs, IFLA_BRPORT_GUARD, RTNL_BRIDGE_BPDU_GUARD); in bridge_parse_protinfo()
[all …]