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