Lines Matching defs:ppp

50 #include "ppp.h"
112 pap_init(pap *_this, npppd_ppp *ppp)
114 _this->ppp = ppp;
126 pap_authenticate(_this, _this->ppp->proxy_authen_resp);
240 if (npppd_ppp_bind_realm(_this->ppp->pppd, _this->ppp, _this->name, 0)
242 if (!npppd_ppp_is_realm_ready(_this->ppp->pppd, _this->ppp)) {
249 if (npppd_ppp_is_realm_radius(_this->ppp->pppd, _this->ppp)) {
255 if (npppd_ppp_is_realm_local(_this->ppp->pppd, _this->ppp)) {
272 snprintf(logbuf, sizeof(logbuf), "ppp id=%u layer=pap %s",
273 _this->ppp->id, fmt);
285 pktp = ppp_packetbuf(_this->ppp, PPP_PROTO_PAP) + HEADERLEN;
286 lpktp = _this->ppp->mru - HEADERLEN;
287 realm = npppd_ppp_get_realm_name(_this->ppp->pppd, _this->ppp);
302 ppp_output(_this->ppp, PPP_PROTO_PAP, AUTHACK, _this->auth_id,
305 ppp_output(_this->ppp, PPP_PROTO_PAP, AUTHNAK, _this->auth_id,
313 ppp_set_disconnect_cause(_this->ppp,
315 ppp_stop(_this->ppp, "Authentication Required");
317 strlcpy(_this->ppp->username, _this->name,
318 sizeof(_this->ppp->username));
323 ppp_auth_ok(_this->ppp);
337 if (npppd_get_user_password(_this->ppp->pppd, _this->ppp, username,
365 PAP_ASSERT(_this->ppp->proxy_authen_resp == NULL);
366 if ((_this->ppp->proxy_authen_resp = malloc(dpi->lauth_resp + 1)) ==
372 memcpy(_this->ppp->proxy_authen_resp, dpi->auth_resp,
374 _this->ppp->proxy_authen_resp[dpi->lauth_resp] = '\0';
395 if ((rad_setting = npppd_get_radius_auth_setting(_this->ppp->pppd,
396 _this->ppp)) == NULL)
409 if (ppp_set_radius_attrs_for_authreq(_this->ppp, rad_setting, radpkt)
414 npppd_ppp_get_username_for_auth(_this->ppp->pppd, _this->ppp,
511 ppp_process_radius_framed_ip(_this->ppp, pkt);