Lines Matching defs:unit
180 link_required(int unit)
189 link_terminated(int unit)
203 link_down(int unit)
216 (*protp->lowerdown)(unit);
218 (*protp->close)(unit, "LCP down");
231 link_established(int unit)
234 lcp_options *wo = &lcp_wantoptions[unit];
235 lcp_options *go = &lcp_gotoptions[unit];
236 lcp_options *ho = &lcp_hisoptions[unit];
246 (*protp->lowerup)(unit);
254 if (!wo->neg_upap || !null_login(unit)) {
256 lcp_close(unit, "peer refused to authenticate");
264 ChapAuthPeer(unit, our_name, go->chap_mdtype);
267 upap_authpeer(unit);
271 ChapAuthWithPeer(unit, user, ho->chap_mdtype);
279 upap_authwithpeer(unit, user, passwd);
282 auth_pending[unit] = auth;
285 network_phase(unit);
292 network_phase(int unit)
296 lcp_options *go = &lcp_gotoptions[unit];
312 (*cbcp_protent.open)(unit);
325 (*protp->open)(unit);
339 auth_peer_fail(int unit, int protocol)
344 lcp_close(unit, "Authentication failed");
351 auth_peer_success(int unit, int protocol, char *name, int namelen)
381 if ((auth_pending[unit] &= ~bit) == 0)
382 network_phase(unit);
389 auth_withpeer_fail(int unit, int protocol)
404 auth_withpeer_success(int unit, int protocol)
427 if ((auth_pending[unit] &= ~bit) == 0)
428 network_phase(unit);
436 np_up(int unit, int proto)
467 np_down(int unit, int proto)
478 np_finished(int unit, int roto)
586 auth_reset(int unit)
589 lcp_options *go = &lcp_gotoptions[unit];
619 check_passwd(int unit, char *auser, int userlen,
627 ipcp_options *ipwo = &ipcp_wantoptions[unit];
696 set_allowed_addrs(unit, addrs);
780 null_login(int unit)
804 set_allowed_addrs(unit, addrs);
910 get_secret(int unit, char *client, char *server,
937 set_allowed_addrs(unit, addrs);
955 set_allowed_addrs(int unit, struct wordlist *addrs)
957 if (addresses[unit] != NULL)
958 free_wordlist(addresses[unit]);
959 addresses[unit] = addrs;
967 struct ipcp_options *wo = &ipcp_wantoptions[unit];
986 auth_ip_addr(int unit, u_int32_t addr)
988 return ip_addr_check(addr, addresses[unit]);