Lines Matching defs:this

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