• Home
  • Raw
  • Download

Lines Matching refs:tei

243 	       tm->l2->sapi, tm->l2->tei, &vaf);  in tei_debug()
423 findtei(struct manager *mgr, int tei) in findtei() argument
430 if ((l2->sapi == 0) && (l2->tei > 0) && in findtei()
431 (l2->tei != GROUP_TEI) && (l2->tei == tei)) in findtei()
441 put_tei_msg(struct manager *mgr, u_char m_id, unsigned int ri, int tei) in put_tei_msg() argument
455 bp[7] = ((tei << 1) & 0xff) | 1; in put_tei_msg()
469 if (tm->l2->tei != GROUP_TEI) { in tei_id_request()
472 tm->l2->tei); in tei_id_request()
491 int ri, tei; in tei_id_assign() local
496 tei = *dp >> 1; in tei_id_assign()
499 ri, tei); in tei_id_assign()
500 l2 = findtei(tm->mgr, tei); in tei_id_assign()
504 "possible duplicate assignment tei %d", tei); in tei_id_assign()
510 tei_l2(tm->l2, MDL_ASSIGN_REQ, tei); in tei_id_assign()
520 int tei, ri; in tei_id_test_dup() local
525 tei = *dp >> 1; in tei_id_test_dup()
528 ri, tei); in tei_id_test_dup()
529 l2 = findtei(tm->mgr, tei); in tei_id_test_dup()
533 "possible duplicate assignment tei %d", tei); in tei_id_test_dup()
544 int ri, tei; in tei_id_denied() local
549 tei = *dp >> 1; in tei_id_denied()
552 ri, tei); in tei_id_denied()
560 int tei; in tei_id_chk_req() local
562 tei = *(dp + 3) >> 1; in tei_id_chk_req()
564 tm->tei_m.printdebug(fi, "identity check req tei %d", tei); in tei_id_chk_req()
565 if ((tm->l2->tei != GROUP_TEI) && ((tei == GROUP_TEI) || in tei_id_chk_req()
566 (tei == tm->l2->tei))) { in tei_id_chk_req()
569 put_tei_msg(tm->mgr, ID_CHK_RES, random_ri(), tm->l2->tei); in tei_id_chk_req()
578 int tei; in tei_id_remove() local
580 tei = *(dp + 3) >> 1; in tei_id_remove()
582 tm->tei_m.printdebug(fi, "identity remove tei %d", tei); in tei_id_remove()
583 if ((tm->l2->tei != GROUP_TEI) && in tei_id_remove()
584 ((tei == GROUP_TEI) || (tei == tm->l2->tei))) { in tei_id_remove()
598 tm->l2->tei); in tei_id_verify()
599 put_tei_msg(tm->mgr, ID_VERIFY, 0, tm->l2->tei); in tei_id_verify()
633 3 - tm->nval, tm->l2->tei); in tei_id_ver_tout()
634 put_tei_msg(tm->mgr, ID_VERIFY, 0, tm->l2->tei); in tei_id_ver_tout()
638 tm->l2->tei); in tei_id_ver_tout()
662 put_tei_msg(l2->tm->mgr, ID_REMOVE, 0, l2->tei); in tei_l2remove()
674 if (tm->l2->tei == GROUP_TEI) { in tei_assign_req()
684 put_tei_msg(tm->mgr, ID_ASSIGNED, tm->ri, tm->l2->tei); in tei_assign_req()
695 tm->l2->tei); in tei_id_chk_req_net()
697 put_tei_msg(tm->mgr, ID_CHK_REQ, 0, tm->l2->tei); in tei_id_chk_req_net()
708 int tei; in tei_id_chk_resp() local
710 tei = dp[3] >> 1; in tei_id_chk_resp()
712 tm->tei_m.printdebug(fi, "identity check resp tei %d", tei); in tei_id_chk_resp()
713 if (tei == tm->l2->tei) in tei_id_chk_resp()
722 int tei; in tei_id_verify_net() local
724 tei = dp[3] >> 1; in tei_id_verify_net()
727 tei, tm->l2->tei); in tei_id_verify_net()
728 if (tei == tm->l2->tei) in tei_id_verify_net()
740 "check req for tei %d successful\n", tm->l2->tei); in tei_id_ver_tout_net()
749 3 - tm->nval, tm->l2->tei); in tei_id_ver_tout_net()
750 put_tei_msg(tm->mgr, ID_CHK_REQ, 0, tm->l2->tei); in tei_id_ver_tout_net()
754 tm->l2->tei); in tei_id_ver_tout_net()
791 create_new_tei(struct manager *mgr, int tei, int sapi) in create_new_tei() argument
801 if ((tei >= 0) && (tei < 64)) in create_new_tei()
810 l2 = create_l2(mgr->up, ISDN_P_LAPD_NT, opt, tei, sapi); in create_new_tei()
859 int tei, ri; in new_tei_req() local
869 tei = dp[3] >> 1; /* 3GPP TS 08.56 6.1.11.2 */ in new_tei_req()
871 tei = get_free_tei(mgr); in new_tei_req()
872 if (tei < 0) { in new_tei_req()
876 l2 = create_new_tei(mgr, tei, CTRL_SAPI); in new_tei_req()
957 mISDN_FsmEvent(&tm->tei_m, EV_CHKREQ, &l2->tei); in l2_tei()
1004 crq->adr.sapi, crq->adr.tei); in create_teimgr()
1005 if (crq->adr.tei > GROUP_TEI) in create_teimgr()
1007 if (crq->adr.tei < 64) in create_teimgr()
1009 if (crq->adr.tei == 0) in create_teimgr()
1014 if ((crq->adr.tei != 0) && (crq->adr.tei != 127)) in create_teimgr()
1025 if ((crq->adr.tei >= 64) && (crq->adr.tei < GROUP_TEI)) in create_teimgr()
1037 if ((crq->protocol == ISDN_P_LAPD_NT) && (crq->adr.tei == 127)) { in create_teimgr()
1055 crq->adr.tei, crq->adr.sapi); in create_teimgr()
1158 put_tei_msg(mgr, ID_REMOVE, 0, l2->tei); in free_teimanager()
1210 int ret, tei, sapi; in check_data() local
1227 tei = skb->data[1] >> 1; in check_data()
1228 if (tei > 63) /* not a fixed tei */ in check_data()
1235 __func__, sapi, tei); in check_data()
1236 l2 = create_new_tei(mgr, tei, sapi); in check_data()