Home
last modified time | relevance | path

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

/net/bridge/
Dbr_stp_bpdu.c101 buf[17] = bpdu->bridge_id.prio[0]; in br_send_config_bpdu()
102 buf[18] = bpdu->bridge_id.prio[1]; in br_send_config_bpdu()
103 buf[19] = bpdu->bridge_id.addr[0]; in br_send_config_bpdu()
104 buf[20] = bpdu->bridge_id.addr[1]; in br_send_config_bpdu()
105 buf[21] = bpdu->bridge_id.addr[2]; in br_send_config_bpdu()
106 buf[22] = bpdu->bridge_id.addr[3]; in br_send_config_bpdu()
107 buf[23] = bpdu->bridge_id.addr[4]; in br_send_config_bpdu()
108 buf[24] = bpdu->bridge_id.addr[5]; in br_send_config_bpdu()
207 bpdu.bridge_id.prio[0] = buf[14]; in br_stp_rcv()
208 bpdu.bridge_id.prio[1] = buf[15]; in br_stp_rcv()
[all …]
Dbr_private_stp.h35 bridge_id root;
37 bridge_id bridge_id; member
48 return !memcmp(&p->designated_bridge, &p->br->bridge_id, 8) && in br_is_designated_port()
Dbr_stp_if.c189 memcpy(oldaddr, br->bridge_id.addr, ETH_ALEN); in br_stp_change_bridge_id()
190 memcpy(br->bridge_id.addr, addr, ETH_ALEN); in br_stp_change_bridge_id()
229 if (ether_addr_equal(br->bridge_id.addr, addr)) in br_stp_recalculate_bridge_id()
253 br->bridge_id.prio[0] = (newprio >> 8) & 0xFF; in br_stp_set_bridge_priority()
254 br->bridge_id.prio[1] = newprio & 0xFF; in br_stp_set_bridge_priority()
275 if (!memcmp(&p->br->bridge_id, &p->designated_bridge, 8) && in br_stp_set_port_priority()
298 ssize_t br_show_bridge_id(char *buf, const struct bridge_id *id) in br_show_bridge_id()
Dbr_stp.c65 if (memcmp(&br->bridge_id, &p->designated_root, 8) <= 0) in br_should_become_root_port()
137 br->designated_root = br->bridge_id; in br_root_selection()
178 bpdu.bridge_id = br->bridge_id; in br_transmit_config()
207 p->designated_bridge = bpdu->bridge_id; in br_record_config_information()
256 t = memcmp(&br->bridge_id, &p->designated_bridge, 8); in br_should_become_designated_port()
298 t = memcmp(&bpdu->bridge_id, &p->designated_bridge, 8); in br_supersedes_port_info()
304 if (memcmp(&bpdu->bridge_id, &p->br->bridge_id, 8)) in br_supersedes_port_info()
376 p->designated_bridge = br->bridge_id; in br_become_designated_port()
Dbr_private.h42 typedef struct bridge_id bridge_id; typedef
46 struct bridge_id struct
142 bridge_id designated_root;
143 bridge_id designated_bridge;
224 bridge_id designated_root;
225 bridge_id bridge_id; member
323 return !memcmp(&br->bridge_id, &br->designated_root, 8); in br_is_root_bridge()
736 extern ssize_t br_show_bridge_id(char *buf, const struct bridge_id *id);
Dbr_stp_timer.c27 !memcmp(&p->designated_bridge, &br->bridge_id, 8)) in br_is_designated_for_some_port()
52 const bridge_id *id = &p->designated_bridge; in br_message_age_timer_expired()
Dbr_device.c362 br->bridge_id.prio[0] = 0x80; in br_dev_setup()
363 br->bridge_id.prio[1] = 0x00; in br_dev_setup()
370 br->designated_root = br->bridge_id; in br_dev_setup()
Dbr_ioctl.c132 memcpy(&b.bridge_id, &br->bridge_id, 8); in old_dev_ioctl()
Dbr_sysfs_br.c191 (br->bridge_id.prio[0] << 8) | br->bridge_id.prio[1]); in show_priority()
217 return br_show_bridge_id(buf, &to_bridge(d)->bridge_id); in show_bridge_id()
219 static DEVICE_ATTR(bridge_id, S_IRUGO, show_bridge_id, NULL);