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

Lines Matching refs:unit

339 lcp_init(unit)
340 int unit;
342 fsm *f = &lcp_fsm[unit];
343 lcp_options *wo = &lcp_wantoptions[unit];
344 lcp_options *ao = &lcp_allowoptions[unit];
346 f->unit = unit;
382 lcp_open(unit)
383 int unit;
385 fsm *f = &lcp_fsm[unit];
386 lcp_options *wo = &lcp_wantoptions[unit];
401 lcp_close(unit, reason)
402 int unit;
405 fsm *f = &lcp_fsm[unit];
439 lcp_lowerup(unit)
440 int unit;
442 lcp_options *wo = &lcp_wantoptions[unit];
443 fsm *f = &lcp_fsm[unit];
450 if (ppp_send_config(unit, PPP_MRU, 0xffffffff, 0, 0) < 0
451 || ppp_recv_config(unit, PPP_MRU, (lax_recv? 0: 0xffffffff),
454 peer_mru[unit] = PPP_MRU;
468 lcp_lowerdown(unit)
469 int unit;
471 fsm *f = &lcp_fsm[unit];
476 fsm_lowerdown(&lcp_fsm[unit]);
500 lcp_input(unit, p, len)
501 int unit;
505 fsm *f = &lcp_fsm[unit];
536 PUTLONG(lcp_gotoptions[f->unit].magicnumber, magp);
590 (*protp->protrej)(f->unit);
603 lcp_protrej(unit)
604 int unit;
610 fsm_protreject(&lcp_fsm[unit]);
618 lcp_sprotrej(unit, p, len)
619 int unit;
630 fsm_sdata(&lcp_fsm[unit], PROTREJ, ++lcp_fsm[unit].id,
642 lcp_options *wo = &lcp_wantoptions[f->unit];
643 lcp_options *go = &lcp_gotoptions[f->unit];
644 lcp_options *ao = &lcp_allowoptions[f->unit];
656 peer_mru[f->unit] = PPP_MRU;
657 auth_reset(f->unit);
668 lcp_options *go = &lcp_gotoptions[f->unit];
706 lcp_options *go = &lcp_gotoptions[f->unit];
794 lcp_options *go = &lcp_gotoptions[f->unit];
949 lcp_options *go = &lcp_gotoptions[f->unit];
950 lcp_options *wo = &lcp_wantoptions[f->unit];
1309 lcp_close(f->unit, "Loopback detected");
1340 lcp_options *go = &lcp_gotoptions[f->unit];
1500 lcp_options *go = &lcp_gotoptions[f->unit];
1501 lcp_options *ho = &lcp_hisoptions[f->unit];
1502 lcp_options *ao = &lcp_allowoptions[f->unit];
1578 * which are set in lcp_allowoptions[unit].asyncmap.
1888 lcp_options *wo = &lcp_wantoptions[f->unit];
1889 lcp_options *ho = &lcp_hisoptions[f->unit];
1890 lcp_options *go = &lcp_gotoptions[f->unit];
1891 lcp_options *ao = &lcp_allowoptions[f->unit];
1913 netif_set_mtu(f->unit, MIN(MIN(mtu, mru), ao->mru));
1914 ppp_send_config(f->unit, mtu,
1917 ppp_recv_config(f->unit, mru,
1922 peer_mru[f->unit] = ho->mru;
1924 lcp_echo_lowerup(f->unit); /* Enable echo messages */
1926 link_established(f->unit);
1939 lcp_options *go = &lcp_gotoptions[f->unit];
1941 lcp_echo_lowerdown(f->unit);
1943 link_down(f->unit);
1945 ppp_send_config(f->unit, PPP_MRU, 0xffffffff, 0, 0);
1946 ppp_recv_config(f->unit, PPP_MRU,
1949 peer_mru[f->unit] = PPP_MRU;
1960 link_required(f->unit);
1971 link_terminated(f->unit);
2215 lcp_close(f->unit, "Peer not responding");
2274 if (lcp_gotoptions[f->unit].neg_magicnumber
2275 && magic == lcp_gotoptions[f->unit].magicnumber) {
2309 lcp_magic = lcp_gotoptions[f->unit].magicnumber;
2322 lcp_echo_lowerup (unit)
2323 int unit;
2325 fsm *f = &lcp_fsm[unit];
2342 lcp_echo_lowerdown (unit)
2343 int unit;
2345 fsm *f = &lcp_fsm[unit];