Home | History | Annotate | Download | only in pppd

Lines Matching full:unit

532 link_required(unit)
533 int unit;
591 link_terminated(unit)
592 int unit;
613 * can happen that another pppd gets the same unit and then
621 * the ppp unit back to the loopback. Set the
659 link_down(unit)
660 int unit;
666 update_link_stats(unit);
672 upper_layers_down(unit);
680 void upper_layers_down(int unit)
689 (*protp->lowerdown)(unit);
691 (*protp->close)(unit, "LCP down");
702 link_established(unit)
703 int unit;
706 lcp_options *wo = &lcp_wantoptions[unit];
707 lcp_options *go = &lcp_gotoptions[unit];
708 lcp_options *ho = &lcp_hisoptions[unit];
719 (*protp->lowerup)(unit);
723 set_allowed_addrs(unit, NULL, NULL);
734 set_allowed_addrs(unit, NULL, NULL);
735 } else if (!wo->neg_upap || uselogin || !null_login(unit)) {
737 lcp_close(unit, "peer refused to authenticate");
747 eap_authpeer(unit, our_name);
750 chap_auth_peer(unit, our_name, CHAP_DIGEST(go->chap_mdtype));
753 upap_authpeer(unit);
757 eap_authwithpeer(unit, user);
760 chap_auth_with_peer(unit, user, CHAP_DIGEST(ho->chap_mdtype));
768 upap_authwithpeer(unit, user, passwd);
771 auth_pending[unit] = auth;
772 auth_done[unit] = 0;
775 network_phase(unit);
782 network_phase(unit)
783 int unit;
785 lcp_options *go = &lcp_gotoptions[unit];
809 (*cbcp_protent.open)(unit);
822 start_networks(unit);
826 start_networks(unit)
827 int unit;
858 ecp_required = ecp_gotoptions[unit].required;
859 mppe_required = ccp_gotoptions[unit].mppe;
861 continue_networks(unit);
865 continue_networks(unit)
866 int unit;
891 auth_peer_fail(unit, protocol)
892 int unit, protocol;
897 lcp_close(unit, "Authentication failed");
905 auth_peer_success(unit, protocol, prot_flavor, name, namelen)
906 int unit, protocol, prot_flavor;
950 auth_done[unit] |= bit;
956 if ((auth_pending[unit] &= ~bit) == 0)
957 network_phase(unit);
964 auth_withpeer_fail(unit, protocol)
965 int unit, protocol;
975 lcp_close(unit, "Failed to authenticate ourselves to peer");
983 auth_withpeer_success(unit, protocol, prot_flavor)
984 int unit, protocol, prot_flavor;
1019 auth_done[unit] |= bit;
1025 if ((auth_pending[unit] &= ~bit) == 0)
1026 network_phase(unit);
1034 np_up(unit, proto)
1035 int unit, proto;
1079 np_down(unit, proto)
1080 int unit, proto;
1096 np_finished(unit, proto)
1097 int unit, proto;
1284 auth_reset(unit)
1285 int unit;
1287 lcp_options *go = &lcp_gotoptions[unit];
1288 lcp_options *ao = &lcp_allowoptions[unit];
1332 check_passwd(unit, auser, userlen, apasswd, passwdlen, msg)
1333 int unit;
1369 set_allowed_addrs(unit, addrs, opts);
1427 lcp_close(unit, "login failed");
1438 set_allowed_addrs(unit, addrs, opts);
1687 null_login(unit)
1688 int unit;
1721 set_allowed_addrs(unit, addrs, opts);
1910 get_secret(unit, client, server, secret, secret_len, am_server)
1911 int unit;
1950 set_allowed_addrs(unit, addrs, opts);
1976 get_srp_secret(unit, client, server, secret, am_server)
1977 int unit;
2009 set_allowed_addrs(unit, addrs, opts);
2025 set_allowed_addrs(unit, addrs, opts)
2026 int unit;
2037 struct ipcp_options *wo = &ipcp_wantoptions[unit];
2040 if (addresses[unit] != NULL)
2041 free(addresses[unit]);
2042 addresses[unit] = NULL;
2138 warn("interface unit %d too large for subnet %v",
2157 addresses[unit] = ip;
2165 && (wo->hisaddr == 0 || !auth_ip_addr(unit, wo->hisaddr))) {
2181 auth_ip_addr(unit, addr)
2182 int unit;
2196 if (addresses[unit] != NULL) {
2197 ok = ip_addr_check(addr, addresses[unit]);