Lines Matching refs:ri
432 put_tei_msg(struct manager *mgr, u_char m_id, unsigned int ri, int tei) in put_tei_msg() argument
443 bp[4] = ri >> 8; in put_tei_msg()
444 bp[5] = ri & 0xff; in put_tei_msg()
466 tm->ri = random_ri(); in tei_id_request()
469 "assign request ri %d", tm->ri); in tei_id_request()
470 put_tei_msg(tm->mgr, ID_REQUEST, tm->ri, GROUP_TEI); in tei_id_request()
482 int ri, tei; in tei_id_assign() local
484 ri = ((unsigned int) *dp++ << 8); in tei_id_assign()
485 ri += *dp++; in tei_id_assign()
490 ri, tei); in tei_id_assign()
493 if (ri != l2->tm->ri) { in tei_id_assign()
498 } else if (ri == tm->ri) { in tei_id_assign()
511 int tei, ri; in tei_id_test_dup() local
513 ri = ((unsigned int) *dp++ << 8); in tei_id_test_dup()
514 ri += *dp++; in tei_id_test_dup()
519 ri, tei); in tei_id_test_dup()
522 if (ri != l2->tm->ri) { /* and it wasn't our request */ in tei_id_test_dup()
535 int ri, tei; in tei_id_denied() local
537 ri = ((unsigned int) *dp++ << 8); in tei_id_denied()
538 ri += *dp++; in tei_id_denied()
543 ri, tei); in tei_id_denied()
602 tm->ri = random_ri(); in tei_id_req_tout()
605 4 - tm->nval, tm->ri); in tei_id_req_tout()
606 put_tei_msg(tm->mgr, ID_REQUEST, tm->ri, GROUP_TEI); in tei_id_req_tout()
670 tm->ri = ((unsigned int) *dp++ << 8); in tei_assign_req()
671 tm->ri += *dp++; in tei_assign_req()
674 "net assign request ri %d teim %d", tm->ri, *dp); in tei_assign_req()
675 put_tei_msg(tm->mgr, ID_ASSIGNED, tm->ri, tm->l2->tei); in tei_assign_req()
850 int tei, ri; in new_tei_req() local
853 ri = dp[0] << 8; in new_tei_req()
854 ri += dp[1]; in new_tei_req()
874 put_tei_msg(mgr, ID_DENIED, ri, GROUP_TEI); in new_tei_req()