• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/ppp-2.4.4/pppd/

Lines Matching defs:unit

342 lcp_init(unit)
343 int unit;
345 fsm *f = &lcp_fsm[unit];
346 lcp_options *wo = &lcp_wantoptions[unit];
347 lcp_options *ao = &lcp_allowoptions[unit];
349 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];
428 lcp_lowerup(unit)
429 int unit;
431 lcp_options *wo = &lcp_wantoptions[unit];
432 fsm *f = &lcp_fsm[unit];
439 if (ppp_send_config(unit, PPP_MRU, 0xffffffff, 0, 0) < 0
440 || ppp_recv_config(unit, PPP_MRU, (lax_recv? 0: 0xffffffff),
443 peer_mru[unit] = PPP_MRU;
457 lcp_lowerdown(unit)
458 int unit;
460 fsm *f = &lcp_fsm[unit];
465 fsm_lowerdown(&lcp_fsm[unit]);
489 lcp_input(unit, p, len)
490 int unit;
494 fsm *f = &lcp_fsm[unit];
524 PUTLONG(lcp_gotoptions[f->unit].magicnumber, magp);
588 (*protp->protrej)(f->unit);
605 lcp_protrej(unit)
606 int unit;
612 fsm_protreject(&lcp_fsm[unit]);
620 lcp_sprotrej(unit, p, len)
621 int unit;
632 fsm_sdata(&lcp_fsm[unit], PROTREJ, ++lcp_fsm[unit].id,
644 lcp_options *wo = &lcp_wantoptions[f->unit];
645 lcp_options *go = &lcp_gotoptions[f->unit];
646 lcp_options *ao = &lcp_allowoptions[f->unit];
658 peer_mru[f->unit] = PPP_MRU;
659 auth_reset(f->unit);
670 lcp_options *go = &lcp_gotoptions[f->unit];
708 lcp_options *go = &lcp_gotoptions[f->unit];
796 lcp_options *go = &lcp_gotoptions[f->unit];
952 lcp_options *go = &lcp_gotoptions[f->unit];
953 lcp_options *wo = &lcp_wantoptions[f->unit];
1315 lcp_close(f->unit, "Loopback detected");
1345 lcp_options *go = &lcp_gotoptions[f->unit];
1505 lcp_options *go = &lcp_gotoptions[f->unit];
1506 lcp_options *ho = &lcp_hisoptions[f->unit];
1507 lcp_options *ao = &lcp_allowoptions[f->unit];
1583 * which are set in lcp_allowoptions[unit].asyncmap.
1893 lcp_options *wo = &lcp_wantoptions[f->unit];
1894 lcp_options *ho = &lcp_hisoptions[f->unit];
1895 lcp_options *go = &lcp_gotoptions[f->unit];
1896 lcp_options *ao = &lcp_allowoptions[f->unit];
1918 netif_set_mtu(f->unit, MIN(MIN(mtu, mru), ao->mru));
1919 ppp_send_config(f->unit, mtu,
1922 ppp_recv_config(f->unit, mru,
1927 peer_mru[f->unit] = ho->mru;
1929 lcp_echo_lowerup(f->unit); /* Enable echo messages */
1931 link_established(f->unit);
1944 lcp_options *go = &lcp_gotoptions[f->unit];
1946 lcp_echo_lowerdown(f->unit);
1948 link_down(f->unit);
1950 ppp_send_config(f->unit, PPP_MRU, 0xffffffff, 0, 0);
1951 ppp_recv_config(f->unit, PPP_MRU,
1954 peer_mru[f->unit] = PPP_MRU;
1965 link_required(f->unit);
1976 link_terminated(f->unit);
2243 lcp_close(f->unit, "Peer not responding");
2301 if (lcp_gotoptions[f->unit].neg_magicnumber
2302 && magic == lcp_gotoptions[f->unit].magicnumber) {
2316 int unit;
2329 matched = sscanf(buf, " ppp%d: %lu %lu %lu", &unit, &rxb, &rxnr, &unknown);
2373 received = get_ppp_pktnr(f->unit);
2375 lcp_ppp_received_pktnr[f->unit]);
2377 if(lcp_ppp_received_pktnr[f->unit] == received) {
2391 lcp_magic = lcp_gotoptions[f->unit].magicnumber;
2400 lcp_ppp_received_pktnr[f->unit] = get_ppp_pktnr(f->unit);
2412 lcp_echo_lowerup (unit)
2413 int unit;
2415 fsm *f = &lcp_fsm[unit];
2441 lcp_echo_lowerdown (unit)
2442 int unit;
2444 fsm *f = &lcp_fsm[unit];