Lines Matching refs:ifunit
343 if (new_style_driver && ifunit < 0)
397 ifunit = -1;
411 if (ioctl(fd, PPPIOCCONNECT, &ifunit) < 0) {
412 error("Couldn't attach to PPP unit %d: %m", ifunit);
429 if (looped && x != ifunit)
430 fatal("transfer_ppp failed: wanted unit %d, got %d", ifunit, x);
431 ifunit = x;
524 if (!looped && ifunit >= 0 && ioctl(ppp_dev_fd, PPPIOCDETACH) < 0)
576 ifunit = req_unit;
577 x = ioctl(ppp_dev_fd, PPPIOCNEWUNIT, &ifunit);
580 ifunit = -1;
581 x = ioctl(ppp_dev_fd, PPPIOCNEWUNIT, &ifunit);
610 if (ioctl(ppp_fd, PPPIOCCONNECT, &ifunit) < 0)
611 fatal("Couldn't attach to PPP unit %d: %m", ifunit);
653 ifunit = ifnum;
955 if (ifunit >= 0 && !(proto >= 0xc000 || proto == PPP_CCPFRAG))
1028 if (nr < 0 && new_style_driver && ifunit >= 0) {
1085 if (ifunit >= 0 && ioctl(sock_fd, SIOCSIFMTU, (caddr_t) &ifr) < 0)
1159 if (new_style_driver && ifunit >= 0
2558 if (ioctl(ppp_fd, PPPIOCGUNIT, &ifunit) < 0)