/external/ppp/pppd/ |
sys-linux.c | 487 ifunit = -1; 501 if (ioctl(fd, PPPIOCCONNECT, &ifunit) < 0) { 502 error("Couldn't attach to PPP unit %d: %m", ifunit); 518 if (looped && x != ifunit) 519 fatal("transfer_ppp failed: wanted unit %d, got %d", ifunit, x); 520 ifunit = x; 639 ifunit = req_unit; 640 x = ioctl(ppp_dev_fd, PPPIOCNEWUNIT, &ifunit); 643 ifunit = -1; 644 x = ioctl(ppp_dev_fd, PPPIOCNEWUNIT, &ifunit); [all...] |
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...] |
auth.c | 578 if (!demand && ifunit >= 0) 585 if (ifunit >= 0) 1145 update_link_stats(ifunit); [all...] |
main.c | 131 int ifunit; /* Interface unit number */ variable 784 info("Using interface %s%d", PPP_DRV_NAME, ifunit); 785 slprintf(ifname, sizeof(ifname), "%s%d", PPP_DRV_NAME, ifunit); [all...] |
ipcp.c | [all...] |
pppd.h | 215 extern int ifunit; /* Interface unit number */ 487 void set_ifunit __P((int)); /* set stuff that depends on ifunit */ [all...] |