FOREACH_PTP_IN_TREE(ptp, tree)
{
port_t *prt = ptp->port;
+ per_tree_port_t *cist_tree = GET_CIST_PTP_FROM_PORT(prt);
/* f) Set Disabled role */
if(ioDisabled == ptp->infoIs)
continue;
}
- if(!cist && (ioReceived == ptp->infoIs)
- && !prt->infoInternal)
+ if(!cist && (ioReceived == cist_tree->infoIs) && !prt->infoInternal)
{
/* g) Set role for the boundary port in MSTI */
- per_tree_port_t *cist_tree = GET_CIST_PTP_FROM_PORT(prt);
if(roleRoot == cist_tree->selectedRole)
{
ptp->selectedRole = roleMaster;
continue;
}
}
- else /* if(cist || (ioReceived != ptp->infoIs) || prt->infoInternal) */
+ else
+ /* if(cist || (ioReceived != cist_tree->infoIs) || prt->infoInternal) */
{
/* h) Set role for the aged info */
if(ioAged == ptp->infoIs)