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

Function sppp_chap_open

freebsd/net/if_spppsubr.c:4201–4212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4199}
4200
4201static void
4202sppp_chap_open(struct sppp *sp)
4203{
4204 if (sp->myauth.proto == PPP_CHAP &&
4205 (sp->lcp.opts & (1 << LCP_OPT_AUTH_PROTO)) != 0) {
4206 /* we are authenticator for CHAP, start it */
4207 chap.scr(sp);
4208 sp->rst_counter[IDX_CHAP] = sp->lcp.max_configure;
4209 sppp_cp_change_state(&chap, sp, STATE_REQ_SENT);
4210 }
4211 /* nothing to be done if we are peer, await a challenge */
4212}
4213
4214static void
4215sppp_chap_close(struct sppp *sp)

Callers

nothing calls this directly

Calls 1

sppp_cp_change_stateFunction · 0.85

Tested by

no test coverage detected