Lines Matching refs:port
56 register PORT_T* port;
58 for (port = this->owner.port->owner->ports; port; port = port->next) {
59 port->sync = True; /* in ROOT_PROPOSED (setSyncBridge) */
66 register PORT_T* port;
68 for (port = this->owner.port->owner->ports; port; port = port->next) {
69 port->reRoot = True; /* In setReRootBridge */
76 register PORT_T* port;
78 for (port = this->owner->ports; port; port = port->next) {
79 if (port->port_index == this->port_index) continue;
80 if (! port->synced) {
91 register PORT_T* port;
93 for (port = this->owner->ports; port; port = port->next) {
94 if (port->port_index == this->port_index) continue;
95 if (port->rrWhile) {
105 register PORT_T* port = this->owner.port;
108 stpm = port->owner;
114 port->role = DisabledPort;
116 port->role = port->selectedRole = DisabledPort;
117 port->reselect = True;
119 port->synced = False; /* in INIT */
120 port->sync = True; /* in INIT */
121 port->reRoot = True; /* in INIT_PORT */
122 port->rrWhile = stpm->rootTimes.ForwardDelay;
123 port->fdWhile = stpm->rootTimes.ForwardDelay;
124 port->rbWhile = 0;
127 STP_port_trace_flags ("after init", port);
131 port->role = port->selectedRole;
132 port->learn =
133 port->forward = False;
136 port->fdWhile = stpm->rootTimes.ForwardDelay;
137 port->synced = True; /* In BLOCKED_PORT */
138 port->rrWhile = 0;
139 port->sync = port->reRoot = False; /* BLOCKED_PORT */
142 port->rbWhile = 2 * stpm->rootTimes.HelloTime;
148 port->proposed = False;
151 STP_port_trace_flags ("ROOT_PROPOSED", port);
155 port->proposed = port->sync = False; /* in ROOT_AGREED */
156 port->synced = True; /* In ROOT_AGREED */
157 port->newInfo = True;
160 STP_port_trace_flags ("ROOT_AGREED", port);
167 STP_port_trace_flags ("REROOT", port);
171 port->role = RootPort;
172 port->rrWhile = stpm->rootTimes.ForwardDelay;
175 STP_port_trace_flags ("ROOT_PORT", port);
179 port->reRoot = False; /* In REROOTED */
182 STP_port_trace_flags ("REROOTED", port);
186 port->fdWhile = stpm->rootTimes.ForwardDelay;
187 port->learn = True;
190 STP_port_trace_flags ("ROOT_LEARN", port);
194 port->fdWhile = 0;
195 port->forward = True;
198 STP_port_trace_flags ("ROOT_FORWARD", port);
204 port->proposing = True; /* in DESIGNATED_PROPOSE */
205 port->newInfo = True;
208 STP_port_trace_flags ("DESIGNATED_PROPOSE", port);
212 port->rrWhile = 0;
213 port->synced = True; /* DESIGNATED_SYNCED */
214 port->sync = False; /* DESIGNATED_SYNCED */
217 STP_port_trace_flags ("DESIGNATED_SYNCED", port);
221 port->reRoot = False; /* DESIGNATED_RETIRED */
224 STP_port_trace_flags ("DESIGNATED_RETIRED", port);
228 port->role = DesignatedPort;
231 STP_port_trace_flags ("DESIGNATED_PORT", port);
235 port->learn = port->forward = False;
236 port->fdWhile = stpm->rootTimes.ForwardDelay;
239 STP_port_trace_flags ("DESIGNATED_LISTEN", port);
243 port->learn = True;
244 port->fdWhile = stpm->rootTimes.ForwardDelay;
247 STP_port_trace_flags ("DESIGNATED_LEARN", port);
251 port->forward = True;
252 port->fdWhile = 0;
255 STP_port_trace_flags ("DESIGNATED_FORWARD", port);
264 register PORT_T *port = this->owner.port;
269 stpm = port->owner;
275 if (port->role != port->selectedRole &&
276 port->selected &&
277 ! port->updtInfo) {
278 switch (port->selectedRole) {
285 (int) port->role, (int) port->selectedRole);
303 if (!port->selected || port->updtInfo) break;
304 if (!port->learning && !port->forwarding) {
309 if (!port->selected || port->updtInfo) break;
310 if (port->fdWhile != stpm->rootTimes.ForwardDelay ||
311 port->sync ||
312 port->reRoot ||
313 !port->synced) {
316 if (port->rbWhile != 2 * stpm->rootTimes.HelloTime &&
317 port->role == BackupPort) {
332 if (!port->selected || port->updtInfo) break;
333 if (!port->forward && !port->reRoot) {
336 allSynced = compute_all_synced (port);
337 if ((port->proposed && allSynced) ||
338 (!port->synced && allSynced)) {
341 if (port->proposed && !port->synced) {
345 allReRooted = compute_re_rooted (port);
346 if ((!port->fdWhile ||
347 ((allReRooted && !port->rbWhile) && stpm->ForceVersion >=2)) &&
348 port->learn && !port->forward) {
351 if ((!port->fdWhile ||
352 ((allReRooted && !port->rbWhile) && stpm->ForceVersion >=2)) &&
353 !port->learn) {
357 if (port->reRoot && port->forward) {
360 if (port->rrWhile != stpm->rootTimes.ForwardDelay) {
379 if (!port->selected || port->updtInfo) break;
381 if (!port->forward && !port->agreed && !port->proposing && !port->operEdge) {
385 if (!port->rrWhile && port->reRoot) {
389 if (!port->learning && !port->forwarding && !port->synced) {
393 if (port->agreed && !port->synced) {
396 if (port->operEdge && !port->synced) {
399 if (port->sync && port->synced) {
403 if ((!port->fdWhile || port->agreed || port->operEdge) &&
404 (!port->rrWhile || !port->reRoot) &&
405 !port->sync &&
406 (port->learn && !port->forward)) {
409 if ((!port->fdWhile || port->agreed || port->operEdge) &&
410 (!port->rrWhile || !port->reRoot) &&
411 !port->sync && !port->learn) {
414 if (((port->sync && !port->synced) ||
415 (port->reRoot && port->rrWhile)) &&
416 !port->operEdge && (port->learn || port->forward)) {