Lines Matching refs:addr
225 void br_stp_change_bridge_id(struct net_bridge *br, const unsigned char *addr) in br_stp_change_bridge_id() argument
235 br_fdb_change_mac_address(br, addr); in br_stp_change_bridge_id()
237 memcpy(oldaddr, br->bridge_id.addr, ETH_ALEN); in br_stp_change_bridge_id()
238 memcpy(br->bridge_id.addr, addr, ETH_ALEN); in br_stp_change_bridge_id()
239 memcpy(br->dev->dev_addr, addr, ETH_ALEN); in br_stp_change_bridge_id()
242 if (ether_addr_equal(p->designated_bridge.addr, oldaddr)) in br_stp_change_bridge_id()
243 memcpy(p->designated_bridge.addr, addr, ETH_ALEN); in br_stp_change_bridge_id()
245 if (ether_addr_equal(p->designated_root.addr, oldaddr)) in br_stp_change_bridge_id()
246 memcpy(p->designated_root.addr, addr, ETH_ALEN); in br_stp_change_bridge_id()
263 const unsigned char *addr = br_mac_zero; in br_stp_recalculate_bridge_id() local
271 if (addr == br_mac_zero || in br_stp_recalculate_bridge_id()
272 memcmp(p->dev->dev_addr, addr, ETH_ALEN) < 0) in br_stp_recalculate_bridge_id()
273 addr = p->dev->dev_addr; in br_stp_recalculate_bridge_id()
277 if (ether_addr_equal(br->bridge_id.addr, addr)) in br_stp_recalculate_bridge_id()
280 br_stp_change_bridge_id(br, addr); in br_stp_recalculate_bridge_id()
352 id->addr[0], id->addr[1], id->addr[2], in br_show_bridge_id()
353 id->addr[3], id->addr[4], id->addr[5]); in br_show_bridge_id()