Lines Matching defs:cu

331     struct bstp_config_unit *cu)
335 cu->cu_pv.pv_root_id =
344 cu->cu_pv.pv_dbridge_id =
353 cu->cu_pv.pv_cost = ntohl(cpdu->cbu_rootpathcost);
354 cu->cu_message_age = ntohs(cpdu->cbu_messageage);
355 cu->cu_max_age = ntohs(cpdu->cbu_maxage);
356 cu->cu_hello_time = ntohs(cpdu->cbu_hellotime);
357 cu->cu_forward_delay = ntohs(cpdu->cbu_forwarddelay);
358 cu->cu_pv.pv_dport_id = ntohs(cpdu->cbu_portid);
359 cu->cu_pv.pv_port_id = bp->bp_port_id;
360 cu->cu_message_type = cpdu->cbu_bpdutype;
368 cu->cu_role = BSTP_ROLE_DESIGNATED;
376 cu->cu_topology_change_ack =
378 cu->cu_proposal =
380 cu->cu_agree =
382 cu->cu_learning =
384 cu->cu_forwarding =
386 cu->cu_topology_change =
391 cu->cu_role = BSTP_ROLE_ROOT;
394 cu->cu_role = BSTP_ROLE_ALTERNATE;
397 cu->cu_role = BSTP_ROLE_DESIGNATED;
614 struct bstp_config_unit *cu = &bp->bp_msg_cu;
628 bstp_decode_bpdu(bp, &cpdu, cu);
629 bstp_received_bpdu(bs, bp, cu);
639 struct bstp_config_unit *cu = &bp->bp_msg_cu;
649 bstp_decode_bpdu(bp, &cpdu, cu);
650 bstp_received_bpdu(bs, bp, cu);
663 struct bstp_config_unit *cu)
676 type = bstp_pdu_rcvtype(bp, cu);
684 if (cu->cu_proposal && cu->cu_forwarding == 0)
686 if (cu->cu_topology_change)
688 if (cu->cu_topology_change_ack)
696 bp->bp_port_pv = cu->cu_pv;
697 bp->bp_port_msg_age = cu->cu_message_age;
698 bp->bp_port_max_age = cu->cu_max_age;
699 bp->bp_port_fdelay = cu->cu_forward_delay;
701 (cu->cu_hello_time > BSTP_MIN_HELLO_TIME ?
702 cu->cu_hello_time : BSTP_MIN_HELLO_TIME);
712 if (cu->cu_proposal && cu->cu_forwarding == 0)
714 if (cu->cu_topology_change)
716 if (cu->cu_topology_change_ack)
724 if (cu->cu_learning) {
735 if (cu->cu_agree && bp->bp_ptp_link) {
741 if (cu->cu_topology_change)
743 if (cu->cu_topology_change_ack)
755 bstp_pdu_rcvtype(struct bstp_port *bp, struct bstp_config_unit *cu)
762 switch (cu->cu_role) {
764 if (bstp_info_superior(&bp->bp_port_pv, &cu->cu_pv))
767 else if (bstp_info_cmp(&bp->bp_port_pv, &cu->cu_pv) ==
769 if (bp->bp_port_msg_age != cu->cu_message_age ||
770 bp->bp_port_max_age != cu->cu_max_age ||
771 bp->bp_port_fdelay != cu->cu_forward_delay ||
772 bp->bp_port_htime != cu->cu_hello_time)
787 if (bstp_info_cmp(&bp->bp_port_pv, &cu->cu_pv) <= INFO_SAME)