| 4517 | } |
| 4518 | |
| 4519 | static void |
| 4520 | sppp_pap_open(struct sppp *sp) |
| 4521 | { |
| 4522 | if (sp->hisauth.proto == PPP_PAP && |
| 4523 | (sp->lcp.opts & (1 << LCP_OPT_AUTH_PROTO)) != 0) { |
| 4524 | /* we are authenticator for PAP, start our timer */ |
| 4525 | sp->rst_counter[IDX_PAP] = sp->lcp.max_configure; |
| 4526 | sppp_cp_change_state(&pap, sp, STATE_REQ_SENT); |
| 4527 | } |
| 4528 | if (sp->myauth.proto == PPP_PAP) { |
| 4529 | /* we are peer, send a request, and start a timer */ |
| 4530 | pap.scr(sp); |
| 4531 | callout_reset(&sp->pap_my_to_ch, sp->lcp.timeout, |
| 4532 | sppp_pap_my_TO, (void *)sp); |
| 4533 | } |
| 4534 | } |
| 4535 | |
| 4536 | static void |
| 4537 | sppp_pap_close(struct sppp *sp) |
nothing calls this directly
no test coverage detected