MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sppp_pap_open

Function sppp_pap_open

freebsd/net/if_spppsubr.c:4519–4534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4517}
4518
4519static void
4520sppp_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
4536static void
4537sppp_pap_close(struct sppp *sp)

Callers

nothing calls this directly

Calls 1

sppp_cp_change_stateFunction · 0.85

Tested by

no test coverage detected