Lines Matching refs:perror_exit
91 if (!(host = gethostbyname(ipstr))) perror_exit("resolving '%s'", ipstr); in get_hostname()
142 if (fscanf(fp, "%*[^\n]\n") < 0) perror_exit("fscanf"); //skip 1st line in display_routes()
151 else if (!inet_ntop(AF_INET, &dest, destip, 32)) perror_exit("inet"); in display_routes()
154 else if (!inet_ntop(AF_INET, &gate, gateip, 32)) perror_exit("inet"); in display_routes()
156 if (!inet_ntop(AF_INET, &mask, maskip, 32)) perror_exit("inet"); in display_routes()
166 if (items > 0 && feof(fp)) perror_exit("fscanf %d", items); in display_routes()
219 else perror_exit("gateway '%s' is a NETWORK", argv[1]); in get_next_params()
250 perror_exit("conflicting netmask and host route"); in verify_netmask()
251 if (addr_mask & (addr_mask + 1)) perror_exit("wrong netmask '%s'", netmask); in verify_netmask()
253 if (addr_mask & router_addr) perror_exit("conflicting netmask and route address"); in verify_netmask()
338 } else perror_exit("resolving '%s'", argv[1]); in get_next_params_inet6()
368 perror_exit("resolving '%s'", targetip); in setroute_inet6()
430 if (inet_pton(AF_INET6, ipv6_dest_addr, buf) <= 0) perror_exit("inet"); in display_routes6()
434 if (inet_pton(AF_INET6, ipv6_src_addr, buf) <= 0) perror_exit("inet"); in display_routes6()
439 if ((items > 0) && feof(fp)) perror_exit("fscanf"); in display_routes6()