Lines Matching refs:tei
88 findtei(struct PStack *st, int tei) in findtei() argument
92 if (tei == 127) in findtei()
96 if (ptr->l2.tei == tei) in findtei()
104 put_tei_msg(struct PStack *st, u_char m_id, unsigned int ri, u_char tei) in put_tei_msg() argument
122 bp[4] = (tei << 1) | 1; in put_tei_msg()
131 if (st->l2.tei != -1) { in tei_id_request()
134 st->l2.tei); in tei_id_request()
153 int ri, tei; in tei_id_assign() local
156 tei = skb->data[4] >> 1; in tei_id_assign()
159 "identity assign ri %d tei %d", ri, tei); in tei_id_assign()
160 if ((ost = findtei(st, tei))) { /* same tei is in use */ in tei_id_assign()
163 "possible duplicate assignment tei %d", tei); in tei_id_assign()
169 st->l3.l3l2(st, MDL_ASSIGN | REQUEST, (void *) (long) tei); in tei_id_assign()
180 int tei, ri; in tei_id_test_dup() local
183 tei = skb->data[4] >> 1; in tei_id_test_dup()
186 "foreign identity assign ri %d tei %d", ri, tei); in tei_id_test_dup()
187 if ((ost = findtei(st, tei))) { /* same tei is in use */ in tei_id_test_dup()
190 "possible duplicate assignment tei %d", tei); in tei_id_test_dup()
201 int ri, tei; in tei_id_denied() local
204 tei = skb->data[4] >> 1; in tei_id_denied()
207 "identity denied ri %d tei %d", ri, tei); in tei_id_denied()
215 int tei; in tei_id_chk_req() local
217 tei = skb->data[4] >> 1; in tei_id_chk_req()
220 "identity check req tei %d", tei); in tei_id_chk_req()
221 if ((st->l2.tei != -1) && ((tei == GROUP_TEI) || (tei == st->l2.tei))) { in tei_id_chk_req()
224 put_tei_msg(st, ID_CHK_RES, random_ri(), st->l2.tei); in tei_id_chk_req()
234 int tei; in tei_id_remove() local
236 tei = skb->data[4] >> 1; in tei_id_remove()
239 "identity remove tei %d", tei); in tei_id_remove()
240 if ((st->l2.tei != -1) && ((tei == GROUP_TEI) || (tei == st->l2.tei))) { in tei_id_remove()
256 "id verify request for tei %d", st->l2.tei); in tei_id_verify()
257 put_tei_msg(st, ID_VERIFY, 0, st->l2.tei); in tei_id_verify()
296 3 - st->ma.N202, st->l2.tei); in tei_id_ver_tout()
297 put_tei_msg(st, ID_VERIFY, 0, st->l2.tei); in tei_id_ver_tout()
301 "verify req for tei %d failed", st->l2.tei); in tei_id_ver_tout()
374 "fixed assign tei %d", st->l2.tei); in tei_l2tei()
375 st->l3.l3l2(st, MDL_ASSIGN | REQUEST, (void *) (long) st->l2.tei); in tei_l2tei()