• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asus-wl-520gu-7.0.1.45/src/router/ppp/pppd/

Lines Matching refs:unit

313 lcp_init(unit)
314 int unit;
316 fsm *f = &lcp_fsm[unit];
317 lcp_options *wo = &lcp_wantoptions[unit];
318 lcp_options *ao = &lcp_allowoptions[unit];
320 f->unit = unit;
356 lcp_open(unit)
357 int unit;
359 fsm *f = &lcp_fsm[unit];
360 lcp_options *wo = &lcp_wantoptions[unit];
375 lcp_close(unit, reason)
376 int unit;
379 fsm *f = &lcp_fsm[unit];
396 fsm_close(&lcp_fsm[unit], reason);
415 lcp_lowerup(unit)
416 int unit;
418 lcp_options *wo = &lcp_wantoptions[unit];
419 fsm *f = &lcp_fsm[unit];
426 ppp_send_config(unit, PPP_MRU, 0xffffffff, 0, 0);
427 ppp_recv_config(unit, PPP_MRU, (lax_recv? 0: 0xffffffff),
429 peer_mru[unit] = PPP_MRU;
443 lcp_lowerdown(unit)
444 int unit;
446 fsm *f = &lcp_fsm[unit];
451 fsm_lowerdown(&lcp_fsm[unit]);
475 lcp_input(unit, p, len)
476 int unit;
480 fsm *f = &lcp_fsm[unit];
511 PUTLONG(lcp_gotoptions[f->unit].magicnumber, magp);
565 (*protp->protrej)(f->unit);
578 lcp_protrej(unit)
579 int unit;
585 fsm_protreject(&lcp_fsm[unit]);
593 lcp_sprotrej(unit, p, len)
594 int unit;
605 fsm_sdata(&lcp_fsm[unit], PROTREJ, ++lcp_fsm[unit].id,
617 lcp_options *wo = &lcp_wantoptions[f->unit];
618 lcp_options *go = &lcp_gotoptions[f->unit];
619 lcp_options *ao = &lcp_allowoptions[f->unit];
631 peer_mru[f->unit] = PPP_MRU;
632 auth_reset(f->unit);
643 lcp_options *go = &lcp_gotoptions[f->unit];
679 lcp_options *go = &lcp_gotoptions[f->unit];
765 lcp_options *go = &lcp_gotoptions[f->unit];
918 lcp_options *go = &lcp_gotoptions[f->unit];
919 lcp_options *wo = &lcp_wantoptions[f->unit];
1239 lcp_close(f->unit, "Loopback detected");
1270 lcp_options *go = &lcp_gotoptions[f->unit];
1427 lcp_options *go = &lcp_gotoptions[f->unit];
1428 lcp_options *ho = &lcp_hisoptions[f->unit];
1429 lcp_options *ao = &lcp_allowoptions[f->unit];
1505 * which are set in lcp_allowoptions[unit].asyncmap.
1772 lcp_options *wo = &lcp_wantoptions[f->unit];
1773 lcp_options *ho = &lcp_hisoptions[f->unit];
1774 lcp_options *go = &lcp_gotoptions[f->unit];
1775 lcp_options *ao = &lcp_allowoptions[f->unit];
1796 netif_set_mtu(f->unit, mtu);
1797 ppp_send_config(f->unit, mtu,
1800 ppp_recv_config(f->unit, (go->neg_mru? MAX(wo->mru, go->mru): PPP_MRU),
1805 peer_mru[f->unit] = ho->mru;
1807 lcp_echo_lowerup(f->unit); /* Enable echo messages */
1809 link_established(f->unit);
1822 lcp_options *go = &lcp_gotoptions[f->unit];
1824 lcp_echo_lowerdown(f->unit);
1826 link_down(f->unit);
1828 ppp_send_config(f->unit, PPP_MRU, 0xffffffff, 0, 0);
1829 ppp_recv_config(f->unit, PPP_MRU,
1832 peer_mru[f->unit] = PPP_MRU;
1843 link_required(f->unit);
1854 link_terminated(f->unit);
2090 lcp_close(f->unit, "Peer not responding");
2168 if (lcp_gotoptions[f->unit].neg_magicnumber
2169 && magic == lcp_gotoptions[f->unit].magicnumber) {
2203 lcp_magic = lcp_gotoptions[f->unit].magicnumber;
2216 lcp_echo_lowerup (unit)
2217 int unit;
2219 fsm *f = &lcp_fsm[unit];
2236 lcp_echo_lowerdown (unit)
2237 int unit;
2239 fsm *f = &lcp_fsm[unit];