Lines Matching refs:unit
336 lcp_init(unit)
337 int unit;
339 fsm *f = &lcp_fsm[unit];
340 lcp_options *wo = &lcp_wantoptions[unit];
341 lcp_options *ao = &lcp_allowoptions[unit];
343 f->unit = unit;
376 lcp_open(unit)
377 int unit;
379 fsm *f = &lcp_fsm[unit];
380 lcp_options *wo = &lcp_wantoptions[unit];
395 lcp_close(unit, reason)
396 int unit;
399 fsm *f = &lcp_fsm[unit];
422 lcp_lowerup(unit)
423 int unit;
425 lcp_options *wo = &lcp_wantoptions[unit];
426 fsm *f = &lcp_fsm[unit];
433 if (ppp_send_config(unit, PPP_MRU, 0xffffffff, 0, 0) < 0
434 || ppp_recv_config(unit, PPP_MRU, (lax_recv? 0: 0xffffffff),
437 peer_mru[unit] = PPP_MRU;
451 lcp_lowerdown(unit)
452 int unit;
454 fsm *f = &lcp_fsm[unit];
459 fsm_lowerdown(&lcp_fsm[unit]);
483 lcp_input(unit, p, len)
484 int unit;
488 fsm *f = &lcp_fsm[unit];
519 PUTLONG(lcp_gotoptions[f->unit].magicnumber, magp);
573 (*protp->protrej)(f->unit);
586 lcp_protrej(unit)
587 int unit;
593 fsm_protreject(&lcp_fsm[unit]);
601 lcp_sprotrej(unit, p, len)
602 int unit;
613 fsm_sdata(&lcp_fsm[unit], PROTREJ, ++lcp_fsm[unit].id,
625 lcp_options *wo = &lcp_wantoptions[f->unit];
626 lcp_options *go = &lcp_gotoptions[f->unit];
627 lcp_options *ao = &lcp_allowoptions[f->unit];
639 peer_mru[f->unit] = PPP_MRU;
640 auth_reset(f->unit);
651 lcp_options *go = &lcp_gotoptions[f->unit];
689 lcp_options *go = &lcp_gotoptions[f->unit];
777 lcp_options *go = &lcp_gotoptions[f->unit];
933 lcp_options *go = &lcp_gotoptions[f->unit];
934 lcp_options *wo = &lcp_wantoptions[f->unit];
1295 lcp_close(f->unit, "Loopback detected");
1326 lcp_options *go = &lcp_gotoptions[f->unit];
1486 lcp_options *go = &lcp_gotoptions[f->unit];
1487 lcp_options *ho = &lcp_hisoptions[f->unit];
1488 lcp_options *ao = &lcp_allowoptions[f->unit];
1564 * which are set in lcp_allowoptions[unit].asyncmap.
1874 lcp_options *wo = &lcp_wantoptions[f->unit];
1875 lcp_options *ho = &lcp_hisoptions[f->unit];
1876 lcp_options *go = &lcp_gotoptions[f->unit];
1877 lcp_options *ao = &lcp_allowoptions[f->unit];
1899 netif_set_mtu(f->unit, MIN(MIN(mtu, mru), ao->mru));
1900 ppp_send_config(f->unit, mtu,
1903 ppp_recv_config(f->unit, mru,
1908 peer_mru[f->unit] = ho->mru;
1910 lcp_echo_lowerup(f->unit); /* Enable echo messages */
1912 link_established(f->unit);
1925 lcp_options *go = &lcp_gotoptions[f->unit];
1927 lcp_echo_lowerdown(f->unit);
1929 link_down(f->unit);
1931 ppp_send_config(f->unit, PPP_MRU, 0xffffffff, 0, 0);
1932 ppp_recv_config(f->unit, PPP_MRU,
1935 peer_mru[f->unit] = PPP_MRU;
1946 link_required(f->unit);
1957 link_terminated(f->unit);
2201 lcp_close(f->unit, "Peer not responding");
2260 if (lcp_gotoptions[f->unit].neg_magicnumber
2261 && magic == lcp_gotoptions[f->unit].magicnumber) {
2295 lcp_magic = lcp_gotoptions[f->unit].magicnumber;
2308 lcp_echo_lowerup (unit)
2309 int unit;
2311 fsm *f = &lcp_fsm[unit];
2328 lcp_echo_lowerdown (unit)
2329 int unit;
2331 fsm *f = &lcp_fsm[unit];