127: re = so_ioctl(sd, SIOCGIFFLAGS, &ifr);
128: DEBUG_PRINT(("if_updown: so_ioctl = %d(%d, %d)\n", re, MERCD(re), SERCD(re)));
129: if ( re < 0 ) {
140: re = so_ioctl(sd, SIOCSIFFLAGS, &ifr);
141: DEBUG_PRINT(("if_updown: so_ioctl = %d(%d, %d)\n", re, MERCD(re), SERCD(re)));
142: if ( re < 0 ) {
159: sd = so_socket(AF_INET, SOCK_DGRAM, 0);
160: DEBUG_PRINT(("set_ifaddr: so_socket = %d(%d, %d)\n", sd, MERCD(sd), SERCD(sd)));
161:
168: iore = so_ioctl(sd, SIOCSIFADDR, &ifr);
169: DEBUG_PRINT(("set_ifaddr: so_ioctl = %d(%d, %d)\n", iore, MERCD(iore), SERCD(iore)));
170:
178: iore = so_ioctl(sd, SIOCSIFNETMASK, &ifr);
179: DEBUG_PRINT(("set_ifaddr: so_ioctl = %d(%d, %d)\n", iore, MERCD(iore), SERCD(iore)));
180: }
199: re = so_resctl(SO_RES_ADD_TABLE, &ht, sizeof ht);
200: DEBUG_PRINT(("so_resctl(localhost) = %d(%d, %d)\n", re, MERCD(re), SERCD(re)));
201: }
214: re = so_getaddrinfo(host, NULL, &hints, &res, buf, sizeof buf, NULL);
215: DEBUG_PRINT(("resolv_host: so_getaddrinfo = %d(%d, %d)\n", re, MERCD(re), SERCD(re)));
216: if ( re < 0 ) {