Lines Matching refs:tpdu
550 struct bstp_tbpdu tpdu; in bstp_input() local
563 if (len < sizeof(tpdu)) { in bstp_input()
572 if ((unsigned int)m->m_len < sizeof(tpdu) && in bstp_input()
573 (m = m_pullup(m, sizeof(tpdu))) == NULL) { in bstp_input()
577 memcpy(&tpdu, mtod(m, caddr_t), sizeof(tpdu)); in bstp_input()
580 if (tpdu.tbu_dsap != LLC_8021D_LSAP || in bstp_input()
581 tpdu.tbu_ssap != LLC_8021D_LSAP || in bstp_input()
582 tpdu.tbu_ctl != LLC_UI) { in bstp_input()
585 if (tpdu.tbu_protoid != BSTP_PROTO_ID) { in bstp_input()
593 if (tpdu.tbu_protover > BSTP_PROTO_MAX) { in bstp_input()
594 tpdu.tbu_protover = BSTP_PROTO_MAX; in bstp_input()
597 if (tpdu.tbu_protover != bp->bp_protover) { in bstp_input()
603 bstp_set_port_proto(bp, tpdu.tbu_protover); in bstp_input()
614 switch (tpdu.tbu_protover) { in bstp_input()
616 bstp_received_stp(bs, bp, &m, &tpdu); in bstp_input()
620 bstp_received_rstp(bs, bp, &m, &tpdu); in bstp_input()
633 struct mbuf **mp, struct bstp_tbpdu *tpdu) in bstp_received_stp() argument
639 switch (tpdu->tbu_bpdutype) { in bstp_received_stp()
641 tu.tu_message_type = tpdu->tbu_bpdutype; in bstp_received_stp()
659 struct mbuf **mp, struct bstp_tbpdu *tpdu) in bstp_received_rstp() argument
664 if (tpdu->tbu_bpdutype != BSTP_MSGTYPE_RSTP) { in bstp_received_rstp()