Lines Matching refs:unit

404 link_required(unit)  in link_required()  argument
405 int unit; in link_required()
415 link_terminated(unit) in link_terminated() argument
416 int unit; in link_terminated()
475 link_down(unit) in link_down() argument
476 int unit; in link_down()
483 update_link_stats(unit);
491 (*protp->lowerdown)(unit);
493 (*protp->close)(unit, "LCP down");
506 link_established(unit) in link_established() argument
507 int unit; in link_established()
510 lcp_options *wo = &lcp_wantoptions[unit];
511 lcp_options *go = &lcp_gotoptions[unit];
512 lcp_options *ho = &lcp_hisoptions[unit];
522 (*protp->lowerup)(unit);
534 set_allowed_addrs(unit, noauth_addrs, NULL);
535 } else if (!wo->neg_upap || !null_login(unit)) {
537 lcp_close(unit, "peer refused to authenticate");
559 ChapAuthPeer(unit, our_name, go->chap_mdtype);
564 upap_authpeer(unit);
586 ChapAuthWithPeer(unit, user, ho->chap_mdtype);
596 upap_authwithpeer(unit, user, passwd);
599 auth_pending[unit] = auth;
602 network_phase(unit);
609 network_phase(unit) in network_phase() argument
610 int unit; in network_phase()
612 lcp_options *go = &lcp_gotoptions[unit];
642 (*cbcp_protent.open)(unit);
690 auth_peer_fail(unit, protocol) in auth_peer_fail() argument
691 int unit, protocol; in auth_peer_fail()
696 lcp_close(unit, "Authentication failed");
704 auth_peer_success(unit, protocol, name, namelen) in auth_peer_success() argument
705 int unit, protocol; in auth_peer_success()
736 if ((auth_pending[unit] &= ~bit) == 0)
737 network_phase(unit);
745 auth_withpeer_fail(unit, protocol) in auth_withpeer_fail() argument
746 int unit, protocol; in auth_withpeer_fail()
756 lcp_close(unit, "Failed to authenticate ourselves to peer");
764 auth_withpeer_success(unit, protocol) in auth_withpeer_success() argument
765 int unit, protocol; in auth_withpeer_success()
787 if ((auth_pending[unit] &= ~bit) == 0)
788 network_phase(unit);
797 np_up(unit, proto) in np_up() argument
798 int unit, proto; in np_up()
829 TIMEOUT(connect_time_expired, &lcp_fsm[unit], maxconnect);
836 lcp_settimeremaining(unit, maxconnect, maxconnect);
838 lcp_settimeremaining(unit, maxconnect, 300);
840 lcp_settimeremaining(unit, maxconnect, 120);
842 lcp_settimeremaining(unit, maxconnect, 30);
859 np_down(unit, proto) in np_down() argument
860 int unit, proto; in np_down()
873 np_finished(unit, proto) in np_finished() argument
874 int unit, proto; in np_finished()
925 lcp_close(f->unit, "Connect time expired"); /* Close connection */
1015 auth_reset(unit) in auth_reset() argument
1016 int unit; in auth_reset()
1018 lcp_options *go = &lcp_gotoptions[unit];
1019 lcp_options *ao = &lcp_allowoptions[unit];
1064 check_passwd(unit, auser, userlen, apasswd, passwdlen, msg) in check_passwd() argument
1065 int unit; in check_passwd()
1099 set_allowed_addrs(unit, addrs, opts);
1154 lcp_close(unit, "login failed");
1165 set_allowed_addrs(unit, addrs, opts);
1428 null_login(unit) in null_login() argument
1429 int unit; in null_login()
1452 set_allowed_addrs(unit, addrs, opts);
1598 get_secret(unit, client, server, secret, secret_len, am_server) in get_secret() argument
1599 int unit; in get_secret()
1643 set_allowed_addrs(unit, addrs, opts);
1669 set_allowed_addrs(unit, addrs, opts) in set_allowed_addrs() argument
1670 int unit; in set_allowed_addrs()
1681 struct ipcp_options *wo = &ipcp_wantoptions[unit];
1685 if (addresses[unit] != NULL)
1686 free(addresses[unit]);
1687 addresses[unit] = NULL;
1805 addresses[unit] = ip;
1813 && (wo->hisaddr == 0 || !auth_ip_addr(unit, wo->hisaddr)))
1822 auth_ip_addr(unit, addr) in auth_ip_addr() argument
1823 int unit; in auth_ip_addr()
1832 if (addresses[unit] != NULL) {
1833 ok = ip_addr_check(addr, addresses[unit]);