Searched refs:ifunit (Results 1 – 6 of 6) sorted by relevance
/external/ppp/pppd/ |
D | sys-linux.c | 487 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 …]
|
D | sys-solaris.c | 610 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()
|
D | auth.c | 578 if (!demand && ifunit >= 0) 585 if (ifunit >= 0) 1145 update_link_stats(ifunit); 1906 offset = ifunit + 1; 1949 ifunit, ptr_word);
|
D | 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);
|
D | ipcp.c | 1747 wo->hisaddr = htonl(0x0a707070 + ifunit); 1752 wo->ouraddr = htonl(0x0a404040 + ifunit); 1812 ho->hisaddr = htonl(0x0a404040 + ifunit);
|
D | pppd.h | 215 extern int ifunit; /* Interface unit number */
|