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