Lines Matching full:ifunit
480 ifunit = -1;
494 if (ioctl(fd, PPPIOCCONNECT, &ifunit) < 0) {
495 error("Couldn't attach to PPP unit %d: %m", ifunit);
511 if (looped && x != ifunit)
512 fatal("transfer_ppp failed: wanted unit %d, got %d", ifunit, x);
513 ifunit = x;
632 ifunit = req_unit;
633 x = ioctl(ppp_dev_fd, PPPIOCNEWUNIT, &ifunit);
636 ifunit = -1;
637 x = ioctl(ppp_dev_fd, PPPIOCNEWUNIT, &ifunit);
662 if (ioctl(ppp_fd, PPPIOCCONNECT, &ifunit) < 0)
663 fatal("Couldn't attach to PPP unit %d: %m", ifunit);
713 ifunit = ifnum;
1166 if (ifunit >= 0 && ioctl(sock_fd, SIOCSIFMTU, (caddr_t) &ifr) < 0)
1181 if (ifunit >= 0 && ioctl(sock_fd, SIOCGIFMTU, (caddr_t) &ifr) < 0) {
2657 if (ioctl(ppp_fd, PPPIOCGUNIT, &ifunit) < 0)