216 |
|
|
217 |
if (u->us_transmits >= u->us_maxtransmits) { |
if (u->us_transmits >= u->us_maxtransmits) { |
218 |
/* give up in disgust */ |
/* give up in disgust */ |
219 |
ppp_trace(LOG_ERR, "No response to PAP authenticate-requests\n"); |
UPAPDEBUG((LOG_ERR, "No response to PAP authenticate-requests\n")); |
220 |
u->us_clientstate = UPAPCS_BADAUTH; |
u->us_clientstate = UPAPCS_BADAUTH; |
221 |
auth_withpeer_fail(u->us_unit, PPP_PAP); |
auth_withpeer_fail(u->us_unit, PPP_PAP); |
222 |
return; |
return; |
299 |
upap_state *u = &upap[unit]; |
upap_state *u = &upap[unit]; |
300 |
|
|
301 |
if (u->us_clientstate == UPAPCS_AUTHREQ) { |
if (u->us_clientstate == UPAPCS_AUTHREQ) { |
302 |
ppp_trace(LOG_ERR, "PAP authentication failed due to protocol-reject\n"); |
UPAPDEBUG((LOG_ERR, "PAP authentication failed due to protocol-reject\n")); |
303 |
auth_withpeer_fail(unit, PPP_PAP); |
auth_withpeer_fail(unit, PPP_PAP); |
304 |
} |
} |
305 |
if (u->us_serverstate == UPAPSS_LISTEN) { |
if (u->us_serverstate == UPAPSS_LISTEN) { |
306 |
ppp_trace(LOG_ERR, "PAP authentication of peer failed (protocol-reject)\n"); |
UPAPDEBUG((LOG_ERR, "PAP authentication of peer failed (protocol-reject)\n")); |
307 |
auth_peer_fail(unit, PPP_PAP); |
auth_peer_fail(unit, PPP_PAP); |
308 |
} |
} |
309 |
upap_lowerdown(unit); |
upap_lowerdown(unit); |
518 |
|
|
519 |
u->us_clientstate = UPAPCS_BADAUTH; |
u->us_clientstate = UPAPCS_BADAUTH; |
520 |
|
|
521 |
ppp_trace(LOG_ERR, "PAP authentication failed\n"); |
UPAPDEBUG((LOG_ERR, "PAP authentication failed\n")); |
522 |
auth_withpeer_fail(u->us_unit, PPP_PAP); |
auth_withpeer_fail(u->us_unit, PPP_PAP); |
523 |
} |
} |
524 |
|
|