Lines Matching defs:this
54 setSyncBridge (STATE_MACH_T *this)
58 for (port = this->owner.port->owner->ports; port; port = port->next) {
64 setReRootBridge (STATE_MACH_T *this)
68 for (port = this->owner.port->owner->ports; port; port = port->next) {
74 compute_all_synced (PORT_T* this)
78 for (port = this->owner->ports; port; port = port->next) {
79 if (port->port_index == this->port_index) continue;
89 compute_re_rooted (PORT_T* this)
93 for (port = this->owner->ports; port; port = port->next) {
94 if (port->port_index == this->port_index) continue;
103 STP_roletrns_enter_state (STATE_MACH_T* this)
105 register PORT_T* port = this->owner.port;
110 switch (this->State) {
126 if (this->debug)
147 setSyncBridge (this);
150 if (this->debug)
159 if (this->debug)
164 setReRootBridge (this);
166 if (this->debug)
174 if (this->debug)
181 if (this->debug)
189 if (this->debug)
197 if (this->debug)
207 if (this->debug)
216 if (this->debug)
223 if (this->debug)
230 if (this->debug)
238 if (this->debug)
246 if (this->debug)
254 if (this->debug)
262 STP_roletrns_check_conditions (STATE_MACH_T* this)
264 register PORT_T *port = this->owner.port;
271 if (BEGIN == this->State) {
272 return STP_hop_2_state (this, INIT_PORT);
283 if (this->debug) {
288 return STP_hop_2_state (this, BLOCK_PORT);
290 return STP_hop_2_state (this, ROOT_PORT);
292 return STP_hop_2_state (this, DESIGNATED_PORT);
298 switch (this->State) {
301 return STP_hop_2_state (this, BLOCK_PORT);
305 return STP_hop_2_state (this, BLOCKED_PORT);
314 return STP_hop_2_state (this, BLOCKED_PORT);
318 return STP_hop_2_state (this, BACKUP_PORT);
322 return STP_hop_2_state (this, BLOCKED_PORT);
326 return STP_hop_2_state (this, ROOT_PORT);
328 return STP_hop_2_state (this, ROOT_PORT);
330 return STP_hop_2_state (this, ROOT_PORT);
334 return STP_hop_2_state (this, REROOT);
339 return STP_hop_2_state (this, ROOT_AGREED);
342 return STP_hop_2_state (this, ROOT_PROPOSED);
349 return STP_hop_2_state (this, ROOT_FORWARD);
354 return STP_hop_2_state (this, ROOT_LEARN);
358 return STP_hop_2_state (this, REROOTED);
361 return STP_hop_2_state (this, ROOT_PORT);
365 return STP_hop_2_state (this, ROOT_PORT);
367 return STP_hop_2_state (this, ROOT_PORT);
369 return STP_hop_2_state (this, ROOT_PORT);
373 return STP_hop_2_state (this, DESIGNATED_PORT);
375 return STP_hop_2_state (this, DESIGNATED_PORT);
377 return STP_hop_2_state (this, DESIGNATED_PORT);
382 return STP_hop_2_state (this, DESIGNATED_PROPOSE);
386 return STP_hop_2_state (this, DESIGNATED_RETIRED);
390 return STP_hop_2_state (this, DESIGNATED_SYNCED);
394 return STP_hop_2_state (this, DESIGNATED_SYNCED);
397 return STP_hop_2_state (this, DESIGNATED_SYNCED);
400 return STP_hop_2_state (this, DESIGNATED_SYNCED);
407 return STP_hop_2_state (this, DESIGNATED_FORWARD);
412 return STP_hop_2_state (this, DESIGNATED_LEARN);
417 return STP_hop_2_state (this, DESIGNATED_LISTEN);
421 return STP_hop_2_state (this, DESIGNATED_PORT);
423 return STP_hop_2_state (this, DESIGNATED_PORT);
425 return STP_hop_2_state (this, DESIGNATED_PORT);