Lines Matching refs:physical
100 ChapOutput(struct physical *physical, u_int code, u_int id, in ChapOutput() argument
120 link_PushPacket(&physical->link, bp, physical->dl->bundle, in ChapOutput()
121 LINK_QUEUES(&physical->link) - 1, PROTO_CHAP); in ChapOutput()
320 chap->auth.physical->dl->bundle, 0, pid); in chap_StartChild()
383 ChapOutput(chap->auth.physical, CHAP_RESPONSE, chap->auth.id, in chap_Respond()
391 ChapOutput(chap->auth.physical, CHAP_FAILURE, chap->auth.id, in chap_Respond()
454 int lanman = chap->auth.physical->link.lcp.his_authtype == 0x80 && in chap_Read()
456 IsAccepted(chap->auth.physical->link.lcp.cfg.chap80lm)) || in chap_Read()
457 !IsAccepted(chap->auth.physical->link.lcp.cfg.chap80nt)); in chap_Read()
469 , chap->auth.physical->link.lcp.his_authtype, lanman in chap_Read()
493 len = strlen(authp->physical->dl->bundle->cfg.auth.name); in chap_ChallengeInit()
500 if (*authp->physical->dl->bundle->radius.cfg.file) { in chap_ChallengeInit()
509 if (authp->physical->link.lcp.want_authtype == 0x80) in chap_ChallengeInit()
511 else if (authp->physical->link.lcp.want_authtype == 0x81) in chap_ChallengeInit()
519 memcpy(cp, authp->physical->dl->bundle->cfg.auth.name, len); in chap_ChallengeInit()
530 authp->physical->link.lcp.want_authtype); in chap_Challenge()
532 len = strlen(authp->physical->dl->bundle->cfg.auth.name); in chap_Challenge()
539 if (authp->physical->link.lcp.want_authtype == 0x81) in chap_Challenge()
540 ChapOutput(authp->physical, CHAP_CHALLENGE, authp->id, in chap_Challenge()
544 ChapOutput(authp->physical, CHAP_CHALLENGE, authp->id, in chap_Challenge()
551 struct bundle *bundle = authp->physical->dl->bundle; in chap_Success()
554 datalink_GotAuthname(authp->physical->dl, authp->in.name); in chap_Success()
556 if (authp->physical->link.lcp.want_authtype == 0x81) { in chap_Success()
573 ChapOutput(authp->physical, CHAP_SUCCESS, authp->id, msg, strlen(msg), in chap_Success()
576 authp->physical->link.lcp.auth_ineed = 0; in chap_Success()
578 physical_Login(authp->physical, authp->in.name); in chap_Success()
580 if (authp->physical->link.lcp.auth_iwait == 0) in chap_Success()
585 datalink_AuthOk(authp->physical->dl); in chap_Success()
597 struct bundle *bundle = authp->physical->link.lcp.fsm.bundle; in chap_Failure()
603 if (authp->physical->link.lcp.want_authtype == 0x80) { in chap_Failure()
606 } else if (authp->physical->link.lcp.want_authtype == 0x81) { in chap_Failure()
620 ChapOutput(authp->physical, CHAP_FAILURE, authp->id, msg, strlen(msg) + 1, in chap_Failure()
622 datalink_AuthNotOk(authp->physical->dl); in chap_Failure()
669 chap_Init(struct chap *chap, struct physical *p) in chap_Init()
695 struct physical *p = link2physical(l); in chap_Input()