Lines Matching refs:ppp_settings

170  * lwip: some of these are present in the ppp_settings structure
463 if (ppp_settings.auth_required && !(go->neg_chap || go->neg_upap)) {
480 ChapAuthPeer(unit, ppp_settings.our_name, go->chap_mdtype);
495 ChapAuthWithPeer(unit, ppp_settings.user, ho->chap_mdtype);
504 if (ppp_settings.passwd[0] == 0) {
506 if (!get_pap_passwd(unit, ppp_settings.user, ppp_settings.passwd)) {
510 upap_authwithpeer(unit, ppp_settings.user, ppp_settings.passwd);
635 BZERO(ppp_settings.passwd, MAXSECRETLEN);
662 BZERO(ppp_settings.passwd, MAXSECRETLEN);
693 AUTHDEBUG(LOG_INFO, ("np_up: maxconnect=%d idle_time_limit=%d\n",ppp_settings.maxconnect,ppp_settings.idle_time_limit));
697 if (ppp_settings.idle_time_limit > 0) {
698 TIMEOUT(check_idle, NULL, ppp_settings.idle_time_limit);
705 if (ppp_settings.maxconnect > 0) {
706 TIMEOUT(connect_time_expired, 0, ppp_settings.maxconnect);
722 if (--num_np_up == 0 && ppp_settings.idle_time_limit > 0) {
758 if (itime >= ppp_settings.idle_time_limit) {
763 TIMEOUT(check_idle, NULL, ppp_settings.idle_time_limit - itime);
792 if (ppp_settings.our_name[0] == 0 || ppp_settings.usehostname) {
793 strcpy(ppp_settings.our_name, ppp_settings.hostname);
796 if (ppp_settings.user[0] == 0) {
797 strcpy(ppp_settings.user, ppp_settings.our_name);
801 if (ppp_settings.auth_required && !wo->neg_chap && !wo->neg_upap) {
813 can_auth = have_chap_secret(ppp_settings.remote_name, ppp_settings.our_name, remote);
816 if (ppp_settings.auth_required && !can_auth) {
836 ao->neg_upap = !ppp_settings.refuse_pap && (ppp_settings.passwd[0] != 0 || get_pap_passwd(unit, NULL, NULL));
837 ao->neg_chap = !ppp_settings.refuse_chap && ppp_settings.passwd[0] != 0 /*have_chap_secret(ppp_settings.user, ppp_settings.remote_name, (u32_t)0)*/;
844 if (!have_chap_secret(ppp_settings.remote_name, ppp_settings.our_name, remote)) {
1086 if(!client || !client[0] || strcmp(client, ppp_settings.user)) {
1090 len = (int)strlen(ppp_settings.passwd);
1096 BCOPY(ppp_settings.passwd, secret, len);
1191 return !ppp_settings.auth_required; /* no addresses authorized */