Searched refs:ifunit (Results 1 - 6 of 6) sorted by relevance

/external/ppp/pppd/
H A Dsys-linux.c481 ifunit = -1;
495 if (ioctl(fd, PPPIOCCONNECT, &ifunit) < 0) {
496 error("Couldn't attach to PPP unit %d: %m", ifunit);
512 if (looped && x != ifunit)
513 fatal("transfer_ppp failed: wanted unit %d, got %d", ifunit, x);
514 ifunit = x;
633 ifunit = req_unit;
634 x = ioctl(ppp_dev_fd, PPPIOCNEWUNIT, &ifunit);
637 ifunit = -1;
638 x = ioctl(ppp_dev_fd, PPPIOCNEWUNIT, &ifunit);
[all...]
H A Dsys-solaris.c610 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 Dauth.c555 if (!demand && ifunit >= 0)
562 if (ifunit >= 0)
1113 update_link_stats(ifunit);
2096 offset = ifunit + 1;
2139 ifunit, ptr_word);
H A Dmain.c129 int ifunit; /* Interface unit number */ variable
781 info("Using interface %s%d", PPP_DRV_NAME, ifunit);
782 slprintf(ifname, sizeof(ifname), "%s%d", PPP_DRV_NAME, ifunit);
H A Dipcp.c1646 wo->hisaddr = htonl(0x0a707070 + ifunit);
1651 wo->ouraddr = htonl(0x0a404040 + ifunit);
1709 ho->hisaddr = htonl(0x0a404040 + ifunit);
H A Dpppd.h214 extern int ifunit; /* Interface unit number */
467 void set_ifunit __P((int)); /* set stuff that depends on ifunit */

Completed in 344 milliseconds