Lines Matching defs:unit

407 link_required(unit)
408 int unit;
418 link_terminated(unit)
419 int unit;
478 link_down(unit)
479 int unit;
486 update_link_stats(unit);
494 (*protp->lowerdown)(unit);
496 (*protp->close)(unit, "LCP down");
509 link_established(unit)
510 int unit;
513 lcp_options *wo = &lcp_wantoptions[unit];
514 lcp_options *go = &lcp_gotoptions[unit];
515 lcp_options *ho = &lcp_hisoptions[unit];
525 (*protp->lowerup)(unit);
537 set_allowed_addrs(unit, noauth_addrs, NULL);
538 } else if (!wo->neg_upap || !null_login(unit)) {
540 lcp_close(unit, "peer refused to authenticate");
562 ChapAuthPeer(unit, our_name, go->chap_mdtype);
567 upap_authpeer(unit);
589 ChapAuthWithPeer(unit, user, ho->chap_mdtype);
599 upap_authwithpeer(unit, user, passwd);
602 auth_pending[unit] = auth;
605 network_phase(unit);
612 network_phase(unit)
613 int unit;
615 lcp_options *go = &lcp_gotoptions[unit];
645 (*cbcp_protent.open)(unit);
693 auth_peer_fail(unit, protocol)
694 int unit, protocol;
699 lcp_close(unit, "Authentication failed");
707 auth_peer_success(unit, protocol, name, namelen)
708 int unit, protocol;
739 if ((auth_pending[unit] &= ~bit) == 0)
740 network_phase(unit);
748 auth_withpeer_fail(unit, protocol)
749 int unit, protocol;
759 lcp_close(unit, "Failed to authenticate ourselves to peer");
767 auth_withpeer_success(unit, protocol)
768 int unit, protocol;
790 if ((auth_pending[unit] &= ~bit) == 0)
791 network_phase(unit);
800 np_up(unit, proto)
801 int unit, proto;
832 TIMEOUT(connect_time_expired, &lcp_fsm[unit], maxconnect);
839 lcp_settimeremaining(unit, maxconnect, maxconnect);
841 lcp_settimeremaining(unit, maxconnect, 300);
843 lcp_settimeremaining(unit, maxconnect, 120);
845 lcp_settimeremaining(unit, maxconnect, 30);
862 np_down(unit, proto)
863 int unit, proto;
876 np_finished(unit, proto)
877 int unit, proto;
928 lcp_close(f->unit, "Connect time expired"); /* Close connection */
1018 auth_reset(unit)
1019 int unit;
1021 lcp_options *go = &lcp_gotoptions[unit];
1022 lcp_options *ao = &lcp_allowoptions[unit];
1067 check_passwd(unit, auser, userlen, apasswd, passwdlen, msg)
1068 int unit;
1102 set_allowed_addrs(unit, addrs, opts);
1157 lcp_close(unit, "login failed");
1168 set_allowed_addrs(unit, addrs, opts);
1435 null_login(unit)
1436 int unit;
1459 set_allowed_addrs(unit, addrs, opts);
1605 get_secret(unit, client, server, secret, secret_len, am_server)
1606 int unit;
1650 set_allowed_addrs(unit, addrs, opts);
1676 set_allowed_addrs(unit, addrs, opts)
1677 int unit;
1688 struct ipcp_options *wo = &ipcp_wantoptions[unit];
1692 if (addresses[unit] != NULL)
1693 free(addresses[unit]);
1694 addresses[unit] = NULL;
1793 warn("interface unit %d too large for subnet %v",
1812 addresses[unit] = ip;
1820 && (wo->hisaddr == 0 || !auth_ip_addr(unit, wo->hisaddr)))
1829 auth_ip_addr(unit, addr)
1830 int unit;
1839 if (addresses[unit] != NULL) {
1840 ok = ip_addr_check(addr, addresses[unit]);