Lines Matching refs:this

47   PORT_T*        this;  in STP_port_create()  local
53 for (this = stpm->ports; this; this = this->next) { in STP_port_create()
54 if (this->port_index == port_index) { in STP_port_create()
59 STP_NEW_IN_LIST(this, PORT_T, stpm->ports, "port create"); in STP_port_create()
61 this->owner = stpm; in STP_port_create()
62 this->machines = NULL; in STP_port_create()
63 this->port_index = port_index; in STP_port_create()
64 this->port_name = strdup (STP_OUT_get_port_name (port_index)); in STP_port_create()
65 this->uptime = 0; in STP_port_create()
69 this->admin_non_stp = port_cfg.admin_non_stp; in STP_port_create()
70 this->adminEdge = port_cfg.admin_edge; in STP_port_create()
71 this->adminPCost = port_cfg.admin_port_path_cost; in STP_port_create()
72 this->adminPointToPointMac = port_cfg.admin_point2point; in STP_port_create()
74 this->LinkDelay = DEF_LINK_DELAY; in STP_port_create()
75 this->port_id = (port_prio << 8) + port_index; in STP_port_create()
78 this->timers[iii++] = &this->fdWhile; in STP_port_create()
79 this->timers[iii++] = &this->helloWhen; in STP_port_create()
80 this->timers[iii++] = &this->mdelayWhile; in STP_port_create()
81 this->timers[iii++] = &this->rbWhile; in STP_port_create()
82 this->timers[iii++] = &this->rcvdInfoWhile; in STP_port_create()
83 this->timers[iii++] = &this->rrWhile; in STP_port_create()
84 this->timers[iii++] = &this->tcWhile; in STP_port_create()
85 this->timers[iii++] = &this->txCount; in STP_port_create()
86 this->timers[iii++] = &this->lnkWhile; in STP_port_create()
110 this->roletrns->ignoreHop2State = 14; /* DESIGNATED_PORT; */ in STP_port_create()
111 this->info->ignoreHop2State = 3; /* CURRENT */ in STP_port_create()
112 this->transmit->ignoreHop2State = 3; /* IDLE */ in STP_port_create()
113 this->edge->ignoreHop2State = 0; /* DISABLED; */ in STP_port_create()
117 this->info->debug = 1; in STP_port_create()
118 this->pcost->debug = 1; in STP_port_create()
119 this->p2p->debug = 1; in STP_port_create()
120 this->edge->debug = 1; in STP_port_create()
121 this->migrate->debug = 1; in STP_port_create()
122 this->sttrans->debug = 1; in STP_port_create()
123 this->topoch->debug = 1; in STP_port_create()
124 this->roletrns->debug = 1; in STP_port_create()
126 this->sttrans->debug = 1; in STP_port_create()
129 return this; in STP_port_create()
133 STP_port_init (PORT_T* this, STPM_T* stpm, Bool check_link) in STP_port_init() argument
136 this->adminEnable = STP_OUT_get_port_link_status (this->port_index); in STP_port_init()
137 STP_VECT_create (&this->designPrio, in STP_port_init()
141 this->port_id, in STP_port_init()
142 this->port_id); in STP_port_init()
143 STP_copy_times (&this->designTimes, &stpm->rootTimes); in STP_port_init()
147 this->fdWhile = in STP_port_init()
148 this->helloWhen = in STP_port_init()
149 this->mdelayWhile = in STP_port_init()
150 this->rbWhile = in STP_port_init()
151 this->rcvdInfoWhile = in STP_port_init()
152 this->rrWhile = in STP_port_init()
153 this->tcWhile = in STP_port_init()
154 this->txCount = 0; in STP_port_init()
156 this->msgPortRole = RSTP_PORT_ROLE_UNKN; in STP_port_init()
157 this->selectedRole = DisabledPort; in STP_port_init()
158 this->sendRSTP = True; in STP_port_init()
159 this->operSpeed = STP_OUT_get_port_oper_speed (this->port_index); in STP_port_init()
160 this->p2p_recompute = True; in STP_port_init()
164 STP_port_delete (PORT_T* this) in STP_port_delete() argument
172 stpm = this->owner; in STP_port_delete()
174 free (this->port_name); in STP_port_delete()
175 for (stater = this->machines; stater; ) { in STP_port_delete()
183 if (tmp->port_index == this->port_index) { in STP_port_delete()
185 prev->next = this->next; in STP_port_delete()
187 stpm->ports = this->next; in STP_port_delete()
189 STP_FREE(this, "stp instance"); in STP_port_delete()
197 STP_port_rx_bpdu (PORT_T* this, BPDU_T* bpdu, size_t len) in STP_port_rx_bpdu() argument
199 STP_info_rx_bpdu (this, bpdu, len); in STP_port_rx_bpdu()
205 int STP_port_trace_state_machine (PORT_T* this, char* mach_name, int enadis) in STP_port_trace_state_machine() argument
210 for (stater = this->machines; stater; stater = stater->next) { in STP_port_trace_state_machine()
215 this->port_name, this->owner->name, in STP_port_trace_state_machine()
226 stp_trace("port %s no such state machine as '%s'", this->port_name, in STP_port_trace_state_machine()
234 void STP_port_trace_flags (char* title, PORT_T* this) in STP_port_trace_flags() argument
240 if (this->reRoot) flag |= 0x000001L; in STP_port_trace_flags()
241 if (this->sync) flag |= 0x000002L; in STP_port_trace_flags()
242 if (this->synced) flag |= 0x000004L; in STP_port_trace_flags()
244 if (this->proposed) flag |= 0x000010L; in STP_port_trace_flags()
245 if (this->proposing) flag |= 0x000020L; in STP_port_trace_flags()
246 if (this->agreed) flag |= 0x000040L; in STP_port_trace_flags()
247 if (this->updtInfo) flag |= 0x000080L; in STP_port_trace_flags()
249 if (this->operEdge) flag |= 0x000100L; in STP_port_trace_flags()
250 …stp_trace (" %-12s: flags=0x%04lx fdWhile=%d port=%s", title, flag, this->fdWhile, this->p… in STP_port_trace_flags()