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

Function sppp_pap_tlu

freebsd/net/if_spppsubr.c:4600–4626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4598}
4599
4600static void
4601sppp_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
4628static void
4629sppp_pap_tld(struct sppp *sp)

Callers

nothing calls this directly

Calls 2

sppp_phase_networkFunction · 0.85
logFunction · 0.50

Tested by

no test coverage detected