Lines Matching +full:3 +full:br
55 llc_mac_hdr_init(skb, p->dev->dev_addr, p->br->group_addr); in br_send_bpdu()
83 if (p->br->stp_enabled != BR_KERNEL_STP) in br_send_config_bpdu()
89 buf[3] = BPDU_TYPE_CONFIG; in br_send_config_bpdu()
97 buf[10] = bpdu->root.addr[3]; in br_send_config_bpdu()
109 buf[22] = bpdu->bridge_id.addr[3]; in br_send_config_bpdu()
130 if (p->br->stp_enabled != BR_KERNEL_STP) in br_send_tcn_bpdu()
136 buf[3] = BPDU_TYPE_TCN; in br_send_tcn_bpdu()
151 struct net_bridge *br; in br_stp_rcv() local
166 br = p->br; in br_stp_rcv()
167 spin_lock(&br->lock); in br_stp_rcv()
169 if (br->stp_enabled != BR_KERNEL_STP) in br_stp_rcv()
172 if (!(br->dev->flags & IFF_UP)) in br_stp_rcv()
178 if (!ether_addr_equal(eth_hdr(skb)->h_dest, br->group_addr)) in br_stp_rcv()
182 br_notice(br, "BPDU received on blocked port %u(%s)\n", in br_stp_rcv()
188 buf = skb_pull(skb, 3); in br_stp_rcv()
201 bpdu.root.prio[1] = buf[3]; in br_stp_rcv()
205 bpdu.root.addr[3] = buf[7]; in br_stp_rcv()
218 bpdu.bridge_id.addr[3] = buf[19]; in br_stp_rcv()
230 br_notice(p->br, in br_stp_rcv()
244 spin_unlock(&br->lock); in br_stp_rcv()