/* * upap_protrej - Peer doesn't speak this protocol. * * This shouldn't happen. In any case, pretend lower layer went down. */ static void upap_protrej(ppp_pcb *pcb) { if (pcb->upap.us_clientstate == UPAPCS_AUTHREQ) { ppp_error("PAP authentication failed due to protocol-reject"); auth_withpeer_fail(pcb, PPP_PAP); } #if PPP_SERVER if (pcb->upap.us_serverstate == UPAPSS_LISTEN) { ppp_error("PAP authentication of peer failed (protocol-reject)"); auth_peer_fail(pcb, PPP_PAP); } #endif /* PPP_SERVER */ upap_lowerdown(pcb); }
/* * upap_protrej - Peer doesn't speak this protocol. * * This shouldn't happen. In any case, pretend lower layer went down. */ static void upap_protrej(int unit) { upap_state *u = &upap[unit]; if (u->us_clientstate == UPAPCS_AUTHREQ) { UPAPDEBUG((LOG_ERR, "PAP authentication failed due to protocol-reject\n")); auth_withpeer_fail(unit, PPP_PAP); } if (u->us_serverstate == UPAPSS_LISTEN) { UPAPDEBUG((LOG_ERR, "PAP authentication of peer failed (protocol-reject)\n")); auth_peer_fail(unit, PPP_PAP); } upap_lowerdown(unit); }
static void upap_protrej (void) { #ifdef AUTH_CFG_CLIENT if (client_state == PAP_CS_AUTHREQ) syslog(LOG_WARNING, "[PPP/PAP] proto-rej recved."); #endif /* of #ifdef AUTH_CFG_CLIENT */ #ifdef AUTH_CFG_SERVER if (server_state == PAP_SS_LISTEN) { syslog(LOG_WARNING, "[PPP/PAP] proto-rej recved."); lcp_close(); } #endif /* of #ifdef AUTH_CFG_SERVER */ upap_lowerdown(); }