Lines Matching refs:ifunit
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()
669 if (ioctl(ppp_fd, PPPIOCCONNECT, &ifunit) < 0) in cfg_bundle()
670 fatal("Couldn't attach to PPP unit %d: %m", ifunit); in cfg_bundle()
720 ifunit = ifnum; in bundle_attach()
1200 if (ifunit >= 0 && ioctl(sock_fd, SIOCSIFMTU, (caddr_t) &ifr) < 0) in netif_set_mtu()
1215 if (ifunit >= 0 && ioctl(sock_fd, SIOCGIFMTU, (caddr_t) &ifr) < 0) { in netif_get_mtu()
2723 if (ioctl(ppp_fd, PPPIOCGUNIT, &ifunit) < 0) in open_ppp_loopback()