/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/ppp/pppoecd/ |
H A D | sys-linux.c | 263 if (new_style_driver && ifunit < 0)
317 ifunit = -1;
331 if (ioctl(fd, PPPIOCCONNECT, &ifunit) < 0) {
332 error("Couldn't attach to PPP unit %d: %m", ifunit);
349 if (looped && x != ifunit)
350 fatal("transfer_ppp failed: wanted unit %d, got %d", ifunit, x);
351 ifunit = x;
401 if (!looped && ifunit >= 0 && ioctl(ppp_dev_fd, PPPIOCDETACH) < 0)
416 ifunit = req_unit;
417 x = ioctl(ppp_dev_fd, PPPIOCNEWUNIT, &ifunit);
[all...] |
H A D | main.c | 70 int ifunit; /* Interface unit number */
variable 438 if (!demand && ifunit >= 0)
699 info("Using interface %s%d", PPP_DRV_NAME, ifunit);
700 slprintf(ifname, sizeof(ifname), "%s%d", PPP_DRV_NAME, ifunit);
|
H A D | pppd.h | 187 extern int ifunit; /* Interface unit number */
400 void set_ifunit __P((int)); /* set stuff that depends on ifunit */
|
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/ppp/pppd/ |
H A D | sys-linux.c | 343 if (new_style_driver && ifunit < 0)
397 ifunit = -1;
411 if (ioctl(fd, PPPIOCCONNECT, &ifunit) < 0) {
412 error("Couldn't attach to PPP unit %d: %m", ifunit);
429 if (looped && x != ifunit)
430 fatal("transfer_ppp failed: wanted unit %d, got %d", ifunit, x);
431 ifunit = x;
524 if (!looped && ifunit >= 0 && ioctl(ppp_dev_fd, PPPIOCDETACH) < 0)
576 ifunit = req_unit;
577 x = ioctl(ppp_dev_fd, PPPIOCNEWUNIT, &ifunit);
[all...] |
H A D | sys-solaris.c | 565 if (strioctl(pppfd, PPPIO_NEWPPA, &ifunit, 0, sizeof(int)) < 0)
575 sprintf(ifname, PPP_DRV_NAME "%d", ifunit);
579 * IP will assign a unit number which hopefully is the same as ifunit.
615 if (sifppa(ifd, ifunit) < 0) {
620 fatal("Can't set ppa for unit %d: %m", ifunit);
640 if (slifname(i6fd, ifunit) < 0) {
643 fatal("Can't set ifname for unit %d: %m", ifunit);
677 if (dlpi_attach(ifd, ifunit) < 0 ||
680 fatal("Can't attach to ppp%d: %m", ifunit);
713 slprintf(ifr.ifr_name, sizeof(ifr.ifr_name), PPP_DRV_NAME "%d", ifunit);
[all...] |
H A D | main.c | 74 int ifunit; /* Interface unit number */
variable 509 if (!demand && ifunit >= 0)
796 info("Using interface %s%d", PPP_DRV_NAME, ifunit);
797 slprintf(ifname, sizeof(ifname), "%s%d", PPP_DRV_NAME, ifunit);
|
H A D | sys-sunos4.c | 136 if (strioctl(pppfd, PPPIO_NEWPPA, &ifunit, 0, sizeof(int)) < 0)
149 if (strioctl(iffd, PPPIO_ATTACH, &ifunit, sizeof(int), 0) < 0)
157 if (strioctl(iffd, PPPIO_NEWPPA, &ifunit, sizeof(int), 0) < 0)
|
H A D | ipcp.c | 1523 wo->hisaddr = htonl(0x0a707070 + ifunit);
1528 wo->ouraddr = htonl(0x0a404040 + ifunit);
1580 ho->hisaddr = htonl(0x0a404040 + ifunit);
|
H A D | pppd.h | 187 extern int ifunit; /* Interface unit number */
399 void set_ifunit __P((int)); /* set stuff that depends on ifunit */
|
H A D | auth.c | 1546 offset = ifunit + 1;
1589 ifunit, ptr_word);
|
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/ppp-2.4.4/pppd/ |
H A D | sys-linux.c | 478 ifunit = -1; 492 if (ioctl(fd, PPPIOCCONNECT, &ifunit) < 0) { 493 error("Couldn't attach to PPP unit %d: %m", ifunit); 509 if (looped && x != ifunit) 510 fatal("transfer_ppp failed: wanted unit %d, got %d", ifunit, x); 511 ifunit = x; 630 ifunit = req_unit; 631 x = ioctl(ppp_dev_fd, PPPIOCNEWUNIT, &ifunit); 634 ifunit = -1; 635 x = ioctl(ppp_dev_fd, PPPIOCNEWUNIT, &ifunit); [all...] |
H A D | sys-solaris.c | 610 if (strioctl(pppfd, PPPIO_NEWPPA, &ifunit, 0, sizeof(int)) < 0) 620 sprintf(ifname, PPP_DRV_NAME "%d", ifunit); 624 * IP will assign a unit number which hopefully is the same as ifunit. 660 if (sifppa(ifd, ifunit) < 0) { 665 fatal("Can't set ppa for unit %d: %m", ifunit); 685 if (slifname(i6fd, ifunit) < 0) { 688 fatal("Can't set ifname for unit %d: %m", ifunit); 722 if (dlpi_attach(ifd, ifunit) < 0 || 725 fatal("Can't attach to ppp%d: %m", ifunit); 758 slprintf(ifr.ifr_name, sizeof(ifr.ifr_name), PPP_DRV_NAME "%d", ifunit); [all...] |
H A D | lcp.c | 2364 received = get_ppp_pktnr(ifunit); 2365 fprintf(stderr, "ppp%d rx %lu (%lu)\n", ifunit, received, 2366 lcp_ppp_received_pktnr[ifunit]); 2368 if(lcp_ppp_received_pktnr[ifunit] == received) { 2398 lcp_ppp_received_pktnr[ifunit] = get_ppp_pktnr(ifunit);
|
H A D | auth.c | 578 if (!demand && ifunit >= 0) 585 if (ifunit >= 0) 1146 update_link_stats(ifunit); 2129 offset = ifunit + 1; 2172 ifunit, ptr_word);
|
H A D | main.c | 128 int ifunit; /* Interface unit number */ variable 820 info("Using interface %s%d", PPP_DRV_NAME, ifunit); 821 slprintf(ifname, sizeof(ifname), "%s%d", PPP_DRV_NAME, ifunit);
|
H A D | ipcp.c | 1646 wo->hisaddr = htonl(0x0a707070 + ifunit); 1651 wo->ouraddr = htonl(0x0a404040 + ifunit); 1710 ho->hisaddr = htonl(0x0a404040 + ifunit);
|
H A D | pppd.h | 214 extern int ifunit; /* Interface unit number */ 473 void set_ifunit __P((int)); /* set stuff that depends on ifunit */
|