| 734 | } |
| 735 | |
| 736 | static int |
| 737 | bstp_info_cmp(struct bstp_pri_vector *pv, |
| 738 | struct bstp_pri_vector *cpv) |
| 739 | { |
| 740 | if (cpv->pv_root_id < pv->pv_root_id) |
| 741 | return (INFO_BETTER); |
| 742 | if (cpv->pv_root_id > pv->pv_root_id) |
| 743 | return (INFO_WORSE); |
| 744 | |
| 745 | if (cpv->pv_cost < pv->pv_cost) |
| 746 | return (INFO_BETTER); |
| 747 | if (cpv->pv_cost > pv->pv_cost) |
| 748 | return (INFO_WORSE); |
| 749 | |
| 750 | if (cpv->pv_dbridge_id < pv->pv_dbridge_id) |
| 751 | return (INFO_BETTER); |
| 752 | if (cpv->pv_dbridge_id > pv->pv_dbridge_id) |
| 753 | return (INFO_WORSE); |
| 754 | |
| 755 | if (cpv->pv_dport_id < pv->pv_dport_id) |
| 756 | return (INFO_BETTER); |
| 757 | if (cpv->pv_dport_id > pv->pv_dport_id) |
| 758 | return (INFO_WORSE); |
| 759 | |
| 760 | return (INFO_SAME); |
| 761 | } |
| 762 | |
| 763 | /* |
| 764 | * This message priority vector is superior to the port priority vector and |
no outgoing calls
no test coverage detected