Lines Matching refs:ok
2034 int s, ok, fd;
2088 ok = ioctl(s, SIOCGIFFLAGS, (caddr_t) &ifr) >= 0;
2094 if (!ok) {
2097 ok = ioctl(s, SIOCGIFFLAGS, (caddr_t) &ifr) >= 0;
2103 if (ok)
2104 ok = ioctl (s, SIOCGIFHWADDR, (caddr_t) &ifr) >= 0;
2106 if (ok && ((ifr.ifr_hwaddr.sa_family & ~0xFF) != ARPHRD_PPP))
2107 ok = 0;
2113 if (ok) {
2120 ok = 0;
2138 ok = 0;
2146 ok = 0;
2151 if (!ok) {
2160 return ok;