Lines Matching refs:port

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