Lines Matching refs:perror_exit
116 if (fscanf(fp, "%*[^\n]\n") < 0) perror_exit("fscanf"); //skip 1st line in display_routes()
125 else if (!inet_ntop(AF_INET, &dest, destip, 32)) perror_exit("inet"); in display_routes()
128 else if (!inet_ntop(AF_INET, &gate, gateip, 32)) perror_exit("inet"); in display_routes()
130 if (!inet_ntop(AF_INET, &mask, maskip, 32)) perror_exit("inet"); in display_routes()
140 if (items > 0 && feof(fp)) perror_exit("fscanf %d", items); in display_routes()
205 perror_exit("resolving '%s'", *netmask); in get_next_params()
214 } else if (ishost < 0) perror_exit("resolving '%s'", *argv); in get_next_params()
215 else perror_exit("gateway '%s' is a NETWORK", *argv); in get_next_params()
245 perror_exit("conflicting netmask and host route"); in verify_netmask()
246 if (addr_mask & (addr_mask + 1)) perror_exit("wrong netmask '%s'", netmask); in verify_netmask()
248 if (addr_mask & router_addr) perror_exit("conflicting netmask and route address"); in verify_netmask()
271 perror_exit("resolving '%s'", targetip); in setroute()
326 } else perror_exit("resolving '%s'", *argv); in get_next_params_inet6()
355 perror_exit("resolving '%s'", targetip); in setroute_inet6()
417 if (inet_pton(AF_INET6, ipv6_dest_addr, buf) <= 0) perror_exit("inet"); in display_routes6()
421 if (inet_pton(AF_INET6, ipv6_src_addr, buf) <= 0) perror_exit("inet"); in display_routes6()
426 if ((items > 0) && feof(fp)) perror_exit("fscanf"); in display_routes6()