Home
last modified time | relevance | path

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

/external/ppp/pppd/
Dsys-linux.c487 ifunit = -1; in generic_establish_ppp()
501 if (ioctl(fd, PPPIOCCONNECT, &ifunit) < 0) { in generic_establish_ppp()
502 error("Couldn't attach to PPP unit %d: %m", ifunit); in generic_establish_ppp()
518 if (looped && x != ifunit) in generic_establish_ppp()
519 fatal("transfer_ppp failed: wanted unit %d, got %d", ifunit, x); in generic_establish_ppp()
520 ifunit = x; in generic_establish_ppp()
639 ifunit = req_unit; in make_ppp_unit()
640 x = ioctl(ppp_dev_fd, PPPIOCNEWUNIT, &ifunit); in make_ppp_unit()
643 ifunit = -1; in make_ppp_unit()
644 x = ioctl(ppp_dev_fd, PPPIOCNEWUNIT, &ifunit); in make_ppp_unit()
[all …]
Dsys-solaris.c610 if (strioctl(pppfd, PPPIO_NEWPPA, &ifunit, 0, sizeof(int)) < 0) in sys_init()
620 sprintf(ifname, PPP_DRV_NAME "%d", ifunit); in sys_init()
660 if (sifppa(ifd, ifunit) < 0) { in sys_init()
665 fatal("Can't set ppa for unit %d: %m", ifunit); in sys_init()
685 if (slifname(i6fd, ifunit) < 0) { in sys_init()
688 fatal("Can't set ifname for unit %d: %m", ifunit); in sys_init()
722 if (dlpi_attach(ifd, ifunit) < 0 || in sys_init()
725 fatal("Can't attach to ppp%d: %m", ifunit); in sys_init()
758 slprintf(ifr.ifr_name, sizeof(ifr.ifr_name), PPP_DRV_NAME "%d", ifunit); in sys_init()
Dauth.c578 if (!demand && ifunit >= 0)
585 if (ifunit >= 0)
1145 update_link_stats(ifunit);
1906 offset = ifunit + 1;
1949 ifunit, ptr_word);
Dmain.c131 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);
Dipcp.c1747 wo->hisaddr = htonl(0x0a707070 + ifunit);
1752 wo->ouraddr = htonl(0x0a404040 + ifunit);
1812 ho->hisaddr = htonl(0x0a404040 + ifunit);
Dpppd.h215 extern int ifunit; /* Interface unit number */