Lines Matching refs:bpdu
260 STP_info_rx_bpdu (PORT_T* port, struct stp_bpdu_t* bpdu, size_t len) in STP_info_rx_bpdu() argument
263 _stp_dump ("\nall BPDU", ((unsigned char*) bpdu) - 12, len + 12); in STP_info_rx_bpdu()
264 _stp_dump ("ETH_HEADER", (unsigned char*) &bpdu->eth, 5); in STP_info_rx_bpdu()
265 _stp_dump ("BPDU_HEADER", (unsigned char*) &bpdu->hdr, 4); in STP_info_rx_bpdu()
267 bpdu->hdr.protocol[0], bpdu->hdr.protocol[1], in STP_info_rx_bpdu()
268 bpdu->hdr.version, bpdu->hdr.bpdu_type); in STP_info_rx_bpdu()
270 _stp_dump ("\nBPDU_BODY", (unsigned char*) &bpdu->body, sizeof (BPDU_BODY_T) + 2); in STP_info_rx_bpdu()
271 stp_trace ("flags=%02x\n", bpdu->body.flags); in STP_info_rx_bpdu()
272 _stp_dump ("root_id", bpdu->body.root_id, 8); in STP_info_rx_bpdu()
273 _stp_dump ("root_path_cost", bpdu->body.root_path_cost, 4); in STP_info_rx_bpdu()
274 _stp_dump ("bridge_id", bpdu->body.bridge_id, 8); in STP_info_rx_bpdu()
275 _stp_dump ("port_id", bpdu->body.port_id, 2); in STP_info_rx_bpdu()
276 _stp_dump ("message_age", bpdu->body.message_age, 2); in STP_info_rx_bpdu()
277 _stp_dump ("max_age", bpdu->body.max_age, 2); in STP_info_rx_bpdu()
278 _stp_dump ("hello_time", bpdu->body.hello_time, 2); in STP_info_rx_bpdu()
279 _stp_dump ("forward_delay", bpdu->body.forward_delay, 2); in STP_info_rx_bpdu()
280 _stp_dump ("ver_1_len", bpdu->ver_1_len, 2); in STP_info_rx_bpdu()
284 switch (bpdu->hdr.bpdu_type) { in STP_info_rx_bpdu()
302 port->msgBpduVersion = bpdu->hdr.version; in STP_info_rx_bpdu()
303 port->msgBpduType = bpdu->hdr.bpdu_type; in STP_info_rx_bpdu()
306 stp_trace ("RX undef bpdu type=%d", (int) bpdu->hdr.bpdu_type); in STP_info_rx_bpdu()
323 port->msgBpduVersion = bpdu->hdr.version; in STP_info_rx_bpdu()
324 port->msgBpduType = bpdu->hdr.bpdu_type; in STP_info_rx_bpdu()
325 port->msgFlags = bpdu->body.flags; in STP_info_rx_bpdu()
328 STP_VECT_get_vector (&bpdu->body, &port->msgPrio); in STP_info_rx_bpdu()
332 STP_get_times (&bpdu->body, &port->msgTimes); in STP_info_rx_bpdu()