Lines Matching refs:addr
190 void br_stp_change_bridge_id(struct net_bridge *br, const unsigned char *addr) in br_stp_change_bridge_id() argument
200 br_fdb_change_mac_address(br, addr); in br_stp_change_bridge_id()
202 memcpy(oldaddr, br->bridge_id.addr, ETH_ALEN); in br_stp_change_bridge_id()
203 memcpy(br->bridge_id.addr, addr, ETH_ALEN); in br_stp_change_bridge_id()
204 memcpy(br->dev->dev_addr, addr, ETH_ALEN); in br_stp_change_bridge_id()
207 if (ether_addr_equal(p->designated_bridge.addr, oldaddr)) in br_stp_change_bridge_id()
208 memcpy(p->designated_bridge.addr, addr, ETH_ALEN); in br_stp_change_bridge_id()
210 if (ether_addr_equal(p->designated_root.addr, oldaddr)) in br_stp_change_bridge_id()
211 memcpy(p->designated_root.addr, addr, ETH_ALEN); in br_stp_change_bridge_id()
228 const unsigned char *addr = br_mac_zero; in br_stp_recalculate_bridge_id() local
236 if (addr == br_mac_zero || in br_stp_recalculate_bridge_id()
237 memcmp(p->dev->dev_addr, addr, ETH_ALEN) < 0) in br_stp_recalculate_bridge_id()
238 addr = p->dev->dev_addr; in br_stp_recalculate_bridge_id()
242 if (ether_addr_equal(br->bridge_id.addr, addr)) in br_stp_recalculate_bridge_id()
245 br_stp_change_bridge_id(br, addr); in br_stp_recalculate_bridge_id()
317 id->addr[0], id->addr[1], id->addr[2], in br_show_bridge_id()
318 id->addr[3], id->addr[4], id->addr[5]); in br_show_bridge_id()