• Home
  • Raw
  • Download

Lines Matching refs:ioctl

295 	if (ioctl(fd, PPPIOCGFLAGS, &flags) == -1)  in modify_flags()
298 if (ioctl(fd, PPPIOCSFLAGS, &flags) == -1) in modify_flags()
390 if (ioctl(ppp_dev_fd, PPPIOCSDEBUG, &requested_level) < 0) { in set_kdebugflag()
410 if (ioctl(tty_fd, TIOCEXCL, 0) < 0) { in tty_establish_ppp()
418 && ioctl(slave_fd, PPPIOCXFERUNIT, 0) < 0) { in tty_establish_ppp()
430 if (ioctl(tty_fd, TIOCSETD, &ppp_disc) < 0) { in tty_establish_ppp()
447 if (ioctl(tty_fd, TIOCSETD, &tty_disc) < 0 && !ok_error(errno)) in tty_establish_ppp()
466 if (ioctl(fd, PPPIOCGCHAN, &chindex) == -1) { in generic_establish_ppp()
477 if (ioctl(fd, PPPIOCATTCHAN, &chindex) < 0) { in generic_establish_ppp()
501 if (ioctl(fd, PPPIOCCONNECT, &ifunit) < 0) { in generic_establish_ppp()
512 if (ioctl(fd, PPPIOCGUNIT, &x) < 0) { in generic_establish_ppp()
569 if (ioctl(tty_fd, TIOCSETD, &tty_disc) < 0) { in tty_disestablish_ppp()
574 if (ioctl(tty_fd, TIOCNXCL, 0) < 0) { in tty_disestablish_ppp()
640 x = ioctl(ppp_dev_fd, PPPIOCNEWUNIT, &ifunit); in make_ppp_unit()
644 x = ioctl(ppp_dev_fd, PPPIOCNEWUNIT, &ifunit); in make_ppp_unit()
661 if (ioctl(ppp_dev_fd, PPPIOCSMRRU, &mrru) < 0) in cfg_bundle()
669 if (ioctl(ppp_fd, PPPIOCCONNECT, &ifunit) < 0) in cfg_bundle()
708 if (ioctl(master_fd, PPPIOCATTACH, &ifnum) < 0) { in bundle_attach()
715 if (ioctl(ppp_fd, PPPIOCCONNECT, &ifnum) < 0) in bundle_attach()
747 if (ioctl(ppp_fd, PPPIOCGFLAGS, (caddr_t) &x) == 0) { in clean_check()
1014 ioctl(tty_fd, (on ? TIOCMBIS : TIOCMBIC), &modembits); in setdtr()
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()
1235 if (ioctl(ppp_fd, PPPIOCSASYNCMAP, (caddr_t) &asyncmap) < 0) { in tty_send_config()
1256 if (ioctl(ppp_fd, PPPIOCSXASYNCMAP, accm) < 0 && errno != ENOTTY) { in tty_set_xaccm()
1279 if (ioctl(ppp_fd, PPPIOCSMRU, (caddr_t) &mru) < 0) { in tty_recv_config()
1284 && ioctl(ppp_dev_fd, PPPIOCSMRU, (caddr_t) &mru) < 0) in tty_recv_config()
1287 if (ioctl(ppp_fd, PPPIOCSRASYNCMAP, (caddr_t) &asyncmap) < 0) { in tty_recv_config()
1309 if (ioctl(ppp_dev_fd, PPPIOCSCOMPRESS, (caddr_t) &data) >= 0) in ccp_test()
1339 if (ioctl(ppp_dev_fd, PPPIOCSPASS, &fp) < 0) { in set_filters()
1348 if (ioctl(ppp_dev_fd, PPPIOCSACTIVE, &fp) < 0) { in set_filters()
1365 return ioctl(ppp_dev_fd, PPPIOCGIDLE, ip) >= 0;
1383 if (ioctl(sock_fd, SIOCGPPPSTATS, &req) < 0) {
1405 if (ioctl(ppp_dev_fd, PPPIOCGFLAGS, &flags) < 0) { in ccp_fatal_error()
1649 if (ioctl(sock_fd, SIOCADDRT, &rt) < 0) { in sifdefaultroute()
1682 if (ioctl(sock_fd, SIOCDELRT, &rt) < 0 && errno != ESRCH) { in cifdefaultroute()
1720 if (ioctl(sock_fd, SIOCSARP, (caddr_t)&arpreq) < 0) { in sifproxyarp()
1761 if (ioctl(sock_fd, SIOCDARP, (caddr_t)&arpreq) < 0) { in cifproxyarp()
1792 if (ioctl(sock_fd, SIOCGIFCONF, &ifc) < 0) { in get_ether_addr()
1811 if (ioctl(sock_fd, SIOCGIFFLAGS, &ifreq) < 0) in get_ether_addr()
1819 if (ioctl(sock_fd, SIOCGIFNETMASK, &ifreq) < 0) in get_ether_addr()
1851 if (ioctl (sock_fd, SIOCGIFHWADDR, &bestifreq) < 0) { in get_ether_addr()
1878 ret = ioctl(sock_fd, SIOCGIFHWADDR, &ifreq); in get_if_hwaddr()
1928 if (ioctl(sock_fd, SIOCGIFCONF, &ifc) < 0) { in GetMask()
1948 if (ioctl(sock_fd, SIOCGIFFLAGS, &ifreq) < 0) in GetMask()
1956 if (ioctl(sock_fd, SIOCGIFNETMASK, &ifreq) < 0) in GetMask()
2016 if (ioctl(local_fd, TIOCSETD, &ppp_disc) < 0) { in ppp_registered()
2088 ok = ioctl(s, SIOCGIFFLAGS, (caddr_t) &ifr) >= 0; in ppp_available()
2097 ok = ioctl(s, SIOCGIFFLAGS, (caddr_t) &ifr) >= 0; in ppp_available()
2104 ok = ioctl (s, SIOCGIFHWADDR, (caddr_t) &ifr) >= 0; in ppp_available()
2117 size = ioctl (s, SIOCGPPPVER, (caddr_t) &ifr); in ppp_available()
2251 if (ioctl(ppp_dev_fd, PPPIOCSMAXCID, (caddr_t) &maxcid) < 0) { in sifvjcomp()
2341 if (ioctl(sock_fd, SIOCGIFFLAGS, (caddr_t) &ifr) < 0) { in setifstate()
2352 if (ioctl(sock_fd, SIOCSIFFLAGS, (caddr_t) &ifr) < 0) { in setifstate()
2383 if (ioctl(sock_fd, SIOCSIFADDR, (caddr_t) &ifr) < 0) { in sifaddr()
2398 if (ioctl(sock_fd, SIOCSIFDSTADDR, (caddr_t) &ifr) < 0) { in sifaddr()
2412 if (ioctl(sock_fd, SIOCSIFNETMASK, (caddr_t) &ifr) < 0) { in sifaddr()
2435 if (ioctl(sock_fd, SIOCADDRT, &rt) < 0) { in sifaddr()
2492 if (ioctl(sock_fd, SIOCDELRT, &rt) < 0 && errno != ESRCH) { in cifaddr()
2504 if (ioctl(sock_fd, SIOCSIFADDR, (caddr_t) &ifr) < 0) { in cifaddr()
2534 if (ioctl(sock6_fd, SIOCGIFINDEX, (caddr_t) &ifr) < 0) { in sif6addr()
2545 if (ioctl(sock6_fd, SIOCSIFADDR, &ifr6) < 0) { in sif6addr()
2558 if (ioctl(sock6_fd, SIOCADDRT, &rt6) < 0) { in sif6addr()
2583 if (ioctl(sock6_fd, SIOCGIFINDEX, (caddr_t) &ifr) < 0) { in cif6addr()
2593 if (ioctl(sock6_fd, SIOCDIFADDR, &ifr6) < 0) { in cif6addr()
2629 if (ioctl(mfd, TIOCGPTN, &ptn) >= 0) {
2634 if (ioctl(mfd, TIOCSPTLCK, &ptn) < 0)
2718 if (ioctl(ppp_fd, TIOCSETD, &ppp_disc) < 0) in open_ppp_loopback()
2723 if (ioctl(ppp_fd, PPPIOCGUNIT, &ifunit) < 0) in open_ppp_loopback()
2748 if (ioctl(ppp_dev_fd, PPPIOCSNPMODE, (caddr_t) &npi) < 0) {
2790 if (ioctl(skfd, SIOCSIFADDR, (caddr_t) &ifr) < 0) { in sipxfaddr()
2838 if (ioctl(skfd, SIOCSIFADDR, (caddr_t) &ifr) < 0) { in cipxfaddr()
2924 if(ioctl(skfd, SIOCGIFHWADDR, &ifr) < 0) in ether_to_eui64()