• Home
  • Raw
  • Download

Lines Matching refs:ioctl

291 	if (ioctl(fd, PPPIOCGFLAGS, &flags) == -1)  in modify_flags()
294 if (ioctl(fd, PPPIOCSFLAGS, &flags) == -1) in modify_flags()
383 if (ioctl(ppp_dev_fd, PPPIOCSDEBUG, &requested_level) < 0) { in set_kdebugflag()
403 if (ioctl(tty_fd, TIOCEXCL, 0) < 0) { in tty_establish_ppp()
411 && ioctl(slave_fd, PPPIOCXFERUNIT, 0) < 0) { in tty_establish_ppp()
423 if (ioctl(tty_fd, TIOCSETD, &ppp_disc) < 0) { in tty_establish_ppp()
440 if (ioctl(tty_fd, TIOCSETD, &tty_disc) < 0 && !ok_error(errno)) in tty_establish_ppp()
459 if (ioctl(fd, PPPIOCGCHAN, &chindex) == -1) { in generic_establish_ppp()
470 if (ioctl(fd, PPPIOCATTCHAN, &chindex) < 0) { in generic_establish_ppp()
494 if (ioctl(fd, PPPIOCCONNECT, &ifunit) < 0) { in generic_establish_ppp()
505 if (ioctl(fd, PPPIOCGUNIT, &x) < 0) { in generic_establish_ppp()
562 if (ioctl(tty_fd, TIOCSETD, &tty_disc) < 0) { in tty_disestablish_ppp()
567 if (ioctl(tty_fd, TIOCNXCL, 0) < 0) { in tty_disestablish_ppp()
633 x = ioctl(ppp_dev_fd, PPPIOCNEWUNIT, &ifunit); in make_ppp_unit()
637 x = ioctl(ppp_dev_fd, PPPIOCNEWUNIT, &ifunit); in make_ppp_unit()
654 if (ioctl(ppp_dev_fd, PPPIOCSMRRU, &mrru) < 0) in cfg_bundle()
662 if (ioctl(ppp_fd, PPPIOCCONNECT, &ifunit) < 0) in cfg_bundle()
701 if (ioctl(master_fd, PPPIOCATTACH, &ifnum) < 0) { in bundle_attach()
708 if (ioctl(ppp_fd, PPPIOCCONNECT, &ifnum) < 0) in bundle_attach()
740 if (ioctl(ppp_fd, PPPIOCGFLAGS, (caddr_t) &x) == 0) { in clean_check()
980 ioctl(tty_fd, (on ? TIOCMBIS : TIOCMBIC), &modembits); in setdtr()
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()
1201 if (ioctl(ppp_fd, PPPIOCSASYNCMAP, (caddr_t) &asyncmap) < 0) { in tty_send_config()
1222 if (ioctl(ppp_fd, PPPIOCSXASYNCMAP, accm) < 0 && errno != ENOTTY) { in tty_set_xaccm()
1245 if (ioctl(ppp_fd, PPPIOCSMRU, (caddr_t) &mru) < 0) { in tty_recv_config()
1250 && ioctl(ppp_dev_fd, PPPIOCSMRU, (caddr_t) &mru) < 0) in tty_recv_config()
1253 if (ioctl(ppp_fd, PPPIOCSRASYNCMAP, (caddr_t) &asyncmap) < 0) { in tty_recv_config()
1275 if (ioctl(ppp_dev_fd, PPPIOCSCOMPRESS, (caddr_t) &data) >= 0) in ccp_test()
1305 if (ioctl(ppp_dev_fd, PPPIOCSPASS, &fp) < 0) { in set_filters()
1314 if (ioctl(ppp_dev_fd, PPPIOCSACTIVE, &fp) < 0) { in set_filters()
1331 return ioctl(ppp_dev_fd, PPPIOCGIDLE, ip) >= 0;
1349 if (ioctl(sock_fd, SIOCGPPPSTATS, &req) < 0) {
1371 if (ioctl(ppp_dev_fd, PPPIOCGFLAGS, &flags) < 0) { in ccp_fatal_error()
1617 if (ioctl(sock_fd, SIOCADDRT, &rt) < 0) { in sifdefaultroute()
1650 if (ioctl(sock_fd, SIOCDELRT, &rt) < 0 && errno != ESRCH) { in cifdefaultroute()
1688 if (ioctl(sock_fd, SIOCSARP, (caddr_t)&arpreq) < 0) { in sifproxyarp()
1729 if (ioctl(sock_fd, SIOCDARP, (caddr_t)&arpreq) < 0) { in cifproxyarp()
1760 if (ioctl(sock_fd, SIOCGIFCONF, &ifc) < 0) { in get_ether_addr()
1779 if (ioctl(sock_fd, SIOCGIFFLAGS, &ifreq) < 0) in get_ether_addr()
1787 if (ioctl(sock_fd, SIOCGIFNETMASK, &ifreq) < 0) in get_ether_addr()
1819 if (ioctl (sock_fd, SIOCGIFHWADDR, &bestifreq) < 0) { in get_ether_addr()
1846 ret = ioctl(sock_fd, SIOCGIFHWADDR, &ifreq); in get_if_hwaddr()
1896 if (ioctl(sock_fd, SIOCGIFCONF, &ifc) < 0) { in GetMask()
1916 if (ioctl(sock_fd, SIOCGIFFLAGS, &ifreq) < 0) in GetMask()
1924 if (ioctl(sock_fd, SIOCGIFNETMASK, &ifreq) < 0) in GetMask()
1984 if (ioctl(local_fd, TIOCSETD, &ppp_disc) < 0) { in ppp_registered()
2066 ok = ioctl(s, SIOCGIFFLAGS, (caddr_t) &ifr) >= 0; in ppp_available()
2075 ok = ioctl(s, SIOCGIFFLAGS, (caddr_t) &ifr) >= 0; in ppp_available()
2082 ok = ioctl (s, SIOCGIFHWADDR, (caddr_t) &ifr) >= 0; in ppp_available()
2095 size = ioctl (s, SIOCGPPPVER, (caddr_t) &ifr); in ppp_available()
2226 if (ioctl(ppp_dev_fd, PPPIOCSMAXCID, (caddr_t) &maxcid) < 0) in sifvjcomp()
2248 if (ioctl(sock_fd, SIOCGIFFLAGS, (caddr_t) &ifr) < 0) { in sifup()
2255 if (ioctl(sock_fd, SIOCSIFFLAGS, (caddr_t) &ifr) < 0) { in sifup()
2280 if (ioctl(sock_fd, SIOCGIFFLAGS, (caddr_t) &ifr) < 0) { in sifdown()
2288 if (ioctl(sock_fd, SIOCSIFFLAGS, (caddr_t) &ifr) < 0) { in sifdown()
2319 if (ioctl(sock_fd, SIOCSIFADDR, (caddr_t) &ifr) < 0) { in sifaddr()
2333 if (ioctl(sock_fd, SIOCSIFDSTADDR, (caddr_t) &ifr) < 0) { in sifaddr()
2346 if (ioctl(sock_fd, SIOCSIFNETMASK, (caddr_t) &ifr) < 0) { in sifaddr()
2369 if (ioctl(sock_fd, SIOCADDRT, &rt) < 0) { in sifaddr()
2426 if (ioctl(sock_fd, SIOCDELRT, &rt) < 0 && errno != ESRCH) { in cifaddr()
2438 if (ioctl(sock_fd, SIOCSIFADDR, (caddr_t) &ifr) < 0) { in cifaddr()
2468 if (ioctl(sock6_fd, SIOCGIFINDEX, (caddr_t) &ifr) < 0) { in sif6addr()
2479 if (ioctl(sock6_fd, SIOCSIFADDR, &ifr6) < 0) { in sif6addr()
2492 if (ioctl(sock6_fd, SIOCADDRT, &rt6) < 0) { in sif6addr()
2517 if (ioctl(sock6_fd, SIOCGIFINDEX, (caddr_t) &ifr) < 0) { in cif6addr()
2527 if (ioctl(sock6_fd, SIOCDIFADDR, &ifr6) < 0) { in cif6addr()
2563 if (ioctl(mfd, TIOCGPTN, &ptn) >= 0) {
2568 if (ioctl(mfd, TIOCSPTLCK, &ptn) < 0)
2652 if (ioctl(ppp_fd, TIOCSETD, &ppp_disc) < 0) in open_ppp_loopback()
2657 if (ioctl(ppp_fd, PPPIOCGUNIT, &ifunit) < 0) in open_ppp_loopback()
2682 if (ioctl(ppp_dev_fd, PPPIOCSNPMODE, (caddr_t) &npi) < 0) {
2724 if (ioctl(skfd, SIOCSIFADDR, (caddr_t) &ifr) < 0) { in sipxfaddr()
2772 if (ioctl(skfd, SIOCSIFADDR, (caddr_t) &ifr) < 0) { in cipxfaddr()
2858 if(ioctl(skfd, SIOCGIFHWADDR, &ifr) < 0) in ether_to_eui64()