bpdu 55 net/bridge/br_private_stp.h const struct br_config_bpdu *bpdu); bpdu 174 net/bridge/br_stp.c struct br_config_bpdu bpdu; bpdu 184 net/bridge/br_stp.c bpdu.topology_change = br->topology_change; bpdu 185 net/bridge/br_stp.c bpdu.topology_change_ack = p->topology_change_ack; bpdu 186 net/bridge/br_stp.c bpdu.root = br->designated_root; bpdu 187 net/bridge/br_stp.c bpdu.root_path_cost = br->root_path_cost; bpdu 188 net/bridge/br_stp.c bpdu.bridge_id = br->bridge_id; bpdu 189 net/bridge/br_stp.c bpdu.port_id = p->port_id; bpdu 191 net/bridge/br_stp.c bpdu.message_age = 0; bpdu 195 net/bridge/br_stp.c bpdu.message_age = (jiffies - root->designated_age) bpdu 198 net/bridge/br_stp.c bpdu.max_age = br->max_age; bpdu 199 net/bridge/br_stp.c bpdu.hello_time = br->hello_time; bpdu 200 net/bridge/br_stp.c bpdu.forward_delay = br->forward_delay; bpdu 202 net/bridge/br_stp.c if (bpdu.message_age < br->max_age) { bpdu 203 net/bridge/br_stp.c br_send_config_bpdu(p, &bpdu); bpdu 214 net/bridge/br_stp.c const struct br_config_bpdu *bpdu) bpdu 216 net/bridge/br_stp.c p->designated_root = bpdu->root; bpdu 217 net/bridge/br_stp.c p->designated_cost = bpdu->root_path_cost; bpdu 218 net/bridge/br_stp.c p->designated_bridge = bpdu->bridge_id; bpdu 219 net/bridge/br_stp.c p->designated_port = bpdu->port_id; bpdu 220 net/bridge/br_stp.c p->designated_age = jiffies - bpdu->message_age; bpdu 223 net/bridge/br_stp.c + (bpdu->max_age - bpdu->message_age)); bpdu 228 net/bridge/br_stp.c const struct br_config_bpdu *bpdu) bpdu 230 net/bridge/br_stp.c br->max_age = bpdu->max_age; bpdu 231 net/bridge/br_stp.c br->hello_time = bpdu->hello_time; bpdu 232 net/bridge/br_stp.c br->forward_delay = bpdu->forward_delay; bpdu 233 net/bridge/br_stp.c __br_set_topology_change(br, bpdu->topology_change); bpdu 294 net/bridge/br_stp.c const struct br_config_bpdu *bpdu) bpdu 298 net/bridge/br_stp.c t = memcmp(&bpdu->root, &p->designated_root, 8); bpdu 304 net/bridge/br_stp.c if (bpdu->root_path_cost < p->designated_cost) bpdu 306 net/bridge/br_stp.c else if (bpdu->root_path_cost > p->designated_cost) bpdu 309 net/bridge/br_stp.c t = memcmp(&bpdu->bridge_id, &p->designated_bridge, 8); bpdu 315 net/bridge/br_stp.c if (memcmp(&bpdu->bridge_id, &p->br->bridge_id, 8)) bpdu 318 net/bridge/br_stp.c if (bpdu->port_id <= p->designated_port) bpdu 482 net/bridge/br_stp.c const struct br_config_bpdu *bpdu) bpdu 490 net/bridge/br_stp.c if (br_supersedes_port_info(p, bpdu)) { bpdu 491 net/bridge/br_stp.c br_record_config_information(p, bpdu); bpdu 507 net/bridge/br_stp.c br_record_config_timeout_values(br, bpdu); bpdu 509 net/bridge/br_stp.c if (bpdu->topology_change_ack) bpdu 79 net/bridge/br_stp_bpdu.c void br_send_config_bpdu(struct net_bridge_port *p, struct br_config_bpdu *bpdu) bpdu 90 net/bridge/br_stp_bpdu.c buf[4] = (bpdu->topology_change ? 0x01 : 0) | bpdu 91 net/bridge/br_stp_bpdu.c (bpdu->topology_change_ack ? 0x80 : 0); bpdu 92 net/bridge/br_stp_bpdu.c buf[5] = bpdu->root.prio[0]; bpdu 93 net/bridge/br_stp_bpdu.c buf[6] = bpdu->root.prio[1]; bpdu 94 net/bridge/br_stp_bpdu.c buf[7] = bpdu->root.addr[0]; bpdu 95 net/bridge/br_stp_bpdu.c buf[8] = bpdu->root.addr[1]; bpdu 96 net/bridge/br_stp_bpdu.c buf[9] = bpdu->root.addr[2]; bpdu 97 net/bridge/br_stp_bpdu.c buf[10] = bpdu->root.addr[3]; bpdu 98 net/bridge/br_stp_bpdu.c buf[11] = bpdu->root.addr[4]; bpdu 99 net/bridge/br_stp_bpdu.c buf[12] = bpdu->root.addr[5]; bpdu 100 net/bridge/br_stp_bpdu.c buf[13] = (bpdu->root_path_cost >> 24) & 0xFF; bpdu 101 net/bridge/br_stp_bpdu.c buf[14] = (bpdu->root_path_cost >> 16) & 0xFF; bpdu 102 net/bridge/br_stp_bpdu.c buf[15] = (bpdu->root_path_cost >> 8) & 0xFF; bpdu 103 net/bridge/br_stp_bpdu.c buf[16] = bpdu->root_path_cost & 0xFF; bpdu 104 net/bridge/br_stp_bpdu.c buf[17] = bpdu->bridge_id.prio[0]; bpdu 105 net/bridge/br_stp_bpdu.c buf[18] = bpdu->bridge_id.prio[1]; bpdu 106 net/bridge/br_stp_bpdu.c buf[19] = bpdu->bridge_id.addr[0]; bpdu 107 net/bridge/br_stp_bpdu.c buf[20] = bpdu->bridge_id.addr[1]; bpdu 108 net/bridge/br_stp_bpdu.c buf[21] = bpdu->bridge_id.addr[2]; bpdu 109 net/bridge/br_stp_bpdu.c buf[22] = bpdu->bridge_id.addr[3]; bpdu 110 net/bridge/br_stp_bpdu.c buf[23] = bpdu->bridge_id.addr[4]; bpdu 111 net/bridge/br_stp_bpdu.c buf[24] = bpdu->bridge_id.addr[5]; bpdu 112 net/bridge/br_stp_bpdu.c buf[25] = (bpdu->port_id >> 8) & 0xFF; bpdu 113 net/bridge/br_stp_bpdu.c buf[26] = bpdu->port_id & 0xFF; bpdu 115 net/bridge/br_stp_bpdu.c br_set_ticks(buf+27, bpdu->message_age); bpdu 116 net/bridge/br_stp_bpdu.c br_set_ticks(buf+29, bpdu->max_age); bpdu 117 net/bridge/br_stp_bpdu.c br_set_ticks(buf+31, bpdu->hello_time); bpdu 118 net/bridge/br_stp_bpdu.c br_set_ticks(buf+33, bpdu->forward_delay); bpdu 187 net/bridge/br_stp_bpdu.c struct br_config_bpdu bpdu; bpdu 193 net/bridge/br_stp_bpdu.c bpdu.topology_change = (buf[1] & 0x01) ? 1 : 0; bpdu 194 net/bridge/br_stp_bpdu.c bpdu.topology_change_ack = (buf[1] & 0x80) ? 1 : 0; bpdu 196 net/bridge/br_stp_bpdu.c bpdu.root.prio[0] = buf[2]; bpdu 197 net/bridge/br_stp_bpdu.c bpdu.root.prio[1] = buf[3]; bpdu 198 net/bridge/br_stp_bpdu.c bpdu.root.addr[0] = buf[4]; bpdu 199 net/bridge/br_stp_bpdu.c bpdu.root.addr[1] = buf[5]; bpdu 200 net/bridge/br_stp_bpdu.c bpdu.root.addr[2] = buf[6]; bpdu 201 net/bridge/br_stp_bpdu.c bpdu.root.addr[3] = buf[7]; bpdu 202 net/bridge/br_stp_bpdu.c bpdu.root.addr[4] = buf[8]; bpdu 203 net/bridge/br_stp_bpdu.c bpdu.root.addr[5] = buf[9]; bpdu 204 net/bridge/br_stp_bpdu.c bpdu.root_path_cost = bpdu 209 net/bridge/br_stp_bpdu.c bpdu.bridge_id.prio[0] = buf[14]; bpdu 210 net/bridge/br_stp_bpdu.c bpdu.bridge_id.prio[1] = buf[15]; bpdu 211 net/bridge/br_stp_bpdu.c bpdu.bridge_id.addr[0] = buf[16]; bpdu 212 net/bridge/br_stp_bpdu.c bpdu.bridge_id.addr[1] = buf[17]; bpdu 213 net/bridge/br_stp_bpdu.c bpdu.bridge_id.addr[2] = buf[18]; bpdu 214 net/bridge/br_stp_bpdu.c bpdu.bridge_id.addr[3] = buf[19]; bpdu 215 net/bridge/br_stp_bpdu.c bpdu.bridge_id.addr[4] = buf[20]; bpdu 216 net/bridge/br_stp_bpdu.c bpdu.bridge_id.addr[5] = buf[21]; bpdu 217 net/bridge/br_stp_bpdu.c bpdu.port_id = (buf[22] << 8) | buf[23]; bpdu 219 net/bridge/br_stp_bpdu.c bpdu.message_age = br_get_ticks(buf+24); bpdu 220 net/bridge/br_stp_bpdu.c bpdu.max_age = br_get_ticks(buf+26); bpdu 221 net/bridge/br_stp_bpdu.c bpdu.hello_time = br_get_ticks(buf+28); bpdu 222 net/bridge/br_stp_bpdu.c bpdu.forward_delay = br_get_ticks(buf+30); bpdu 224 net/bridge/br_stp_bpdu.c if (bpdu.message_age > bpdu.max_age) { bpdu 231 net/bridge/br_stp_bpdu.c bpdu.message_age, bpdu.max_age); bpdu 235 net/bridge/br_stp_bpdu.c br_received_config_bpdu(p, &bpdu);