Lines Matching refs:port
124 if (this->owner.port->skip_tx > 0) {
125 if (1 == this->owner.port->skip_tx)
126 stp_trace ("port %s stop tx skipping",
127 this->owner.port->port_name);
128 this->owner.port->skip_tx--;
133 if (this->owner.port->admin_non_stp) return 1;
134 port_index = this->owner.port->port_index;
135 vlan_id = this->owner.port->owner->vlan_id;
143 stp_trace ("port %s txTcn", this->owner.port->port_name);
151 build_config_bpdu (PORT_T* port, Bool set_topo_ack_flag)
154 if (port->tcWhile) {
156 if (port->topoch->debug)
157 stp_trace ("tcWhile=%d =>tx TOPOLOGY_CHANGE_BIT to port %s",
158 (int) port->tcWhile, port->port_name);
163 if (set_topo_ack_flag && port->tcAck) {
167 STP_VECT_set_vector (&port->portPrio, &bpdu_packet.body);
168 STP_set_times (&port->portTimes, &bpdu_packet.body);
175 register PORT_T* port = NULL;
179 if (this->owner.port->skip_tx > 0) {
180 if (1 == this->owner.port->skip_tx)
181 stp_trace ("port %s stop tx skipping",
182 this->owner.port->port_name);
183 this->owner.port->skip_tx--;
188 port = this->owner.port;
189 if (port->admin_non_stp) return 1;
190 port_index = port->port_index;
191 vlan_id = port->owner->vlan_id;
193 pkt_len = build_bpdu_header (port->port_index,
196 build_config_bpdu (port, True);
200 stp_trace ("port %s txConfig flags=0X%lx",
201 port->port_name,
213 register PORT_T* port = NULL;
218 if (this->owner.port->skip_tx > 0) {
219 if (1 == this->owner.port->skip_tx)
220 stp_trace ("port %s stop tx skipping",
221 this->owner.port->port_name);
223 stp_trace ("port %s skip tx %d",
224 this->owner.port->port_name, this->owner.port->skip_tx);
226 this->owner.port->skip_tx--;
231 port = this->owner.port;
232 if (port->admin_non_stp) return 1;
233 port_index = port->port_index;
234 vlan_id = port->owner->vlan_id;
236 pkt_len = build_bpdu_header (port->port_index,
239 build_config_bpdu (port, False);
241 switch (port->selectedRole) {
262 if (port->synced) {
264 if (port->roletrns->debug)
265 stp_trace ("tx AGREEMENT_BIT to port %s", port->port_name);
270 if (port->proposing) {
272 if (port->roletrns->debug)
273 stp_trace ("tx PROPOSAL_BIT to port %s", port->port_name);
280 stp_trace ("port %s txRstp flags=0X%lx",
281 port->port_name,
293 register PORT_T* port = this->owner.port;
298 port->newInfo = False;
299 port->helloWhen = 0;
300 port->txCount = 0;
303 port->newInfo = port->newInfo ||
304 ((port->role == DesignatedPort) ||
305 ((port->role == RootPort) && port->tcWhile));
306 port->helloWhen = port->owner->rootTimes.HelloTime;
311 port->newInfo = False;
313 port->txCount++;
314 port->tcAck = False;
317 port->newInfo = False;
319 port->txCount++;
322 port->newInfo = False;
324 port->txCount++;
325 port->tcAck = False;
333 register PORT_T* port = this->owner.port;
343 if (!port->helloWhen) return STP_hop_2_state (this, TRANSMIT_PERIODIC);
344 if (!port->sendRSTP && port->newInfo &&
345 (port->txCount < TxHoldCount) &&
346 (port->role == DesignatedPort) &&
347 port->helloWhen)
349 if (!port->sendRSTP && port->newInfo &&
350 (port->txCount < TxHoldCount) &&
351 (port->role == RootPort) &&
352 port->helloWhen)
354 if (port->sendRSTP && port->newInfo &&
355 (port->txCount < TxHoldCount) &&
356 ((port->role == RootPort) ||
357 (port->role == DesignatedPort)))