| 4598 | } |
| 4599 | |
| 4600 | static void |
| 4601 | sppp_pap_tlu(struct sppp *sp) |
| 4602 | { |
| 4603 | STDDCL; |
| 4604 | |
| 4605 | sp->rst_counter[IDX_PAP] = sp->lcp.max_configure; |
| 4606 | |
| 4607 | if (debug) |
| 4608 | log(LOG_DEBUG, SPP_FMT "%s tlu\n", |
| 4609 | SPP_ARGS(ifp), pap.name); |
| 4610 | |
| 4611 | SPPP_LOCK(sp); |
| 4612 | /* indicate to LCP that we need to be closed down */ |
| 4613 | sp->lcp.protos |= (1 << IDX_PAP); |
| 4614 | |
| 4615 | if (sp->pp_flags & PP_NEEDAUTH) { |
| 4616 | /* |
| 4617 | * Remote is authenticator, but his auth proto didn't |
| 4618 | * complete yet. Defer the transition to network |
| 4619 | * phase. |
| 4620 | */ |
| 4621 | SPPP_UNLOCK(sp); |
| 4622 | return; |
| 4623 | } |
| 4624 | SPPP_UNLOCK(sp); |
| 4625 | sppp_phase_network(sp); |
| 4626 | } |
| 4627 | |
| 4628 | static void |
| 4629 | sppp_pap_tld(struct sppp *sp) |
nothing calls this directly
no test coverage detected