Lines Matching defs:tpdu
536 struct bstp_tbpdu tpdu;
549 if (len < sizeof(tpdu))
556 if ((unsigned int)m->m_len < sizeof(tpdu) &&
557 (m = m_pullup(m, sizeof(tpdu))) == NULL)
560 memcpy(&tpdu, mtod(m, caddr_t), sizeof(tpdu));
563 if (tpdu.tbu_dsap != LLC_8021D_LSAP ||
564 tpdu.tbu_ssap != LLC_8021D_LSAP ||
565 tpdu.tbu_ctl != LLC_UI)
567 if (tpdu.tbu_protoid != BSTP_PROTO_ID)
574 if (tpdu.tbu_protover > BSTP_PROTO_MAX)
575 tpdu.tbu_protover = BSTP_PROTO_MAX;
577 if (tpdu.tbu_protover != bp->bp_protover) {
583 bstp_set_port_proto(bp, tpdu.tbu_protover);
593 switch (tpdu.tbu_protover) {
595 bstp_received_stp(bs, bp, &m, &tpdu);
599 bstp_received_rstp(bs, bp, &m, &tpdu);
611 struct mbuf **mp, struct bstp_tbpdu *tpdu)
617 switch (tpdu->tbu_bpdutype) {
619 tu.tu_message_type = tpdu->tbu_bpdutype;
636 struct mbuf **mp, struct bstp_tbpdu *tpdu)
641 if (tpdu->tbu_bpdutype != BSTP_MSGTYPE_RSTP)