Lines Matching refs:error_exit

143   error_exit(NULL);  in iphelp()
278 error_exit("wrong database"); in getlist()
347 if (family == AF_PACKET) error_exit("'%s' may be inet prefix", name); in get_prefix()
419 if (get_prefix(addr, &af, name, family)) error_exit("Invalid prefix"); in parse_prefix()
423 error_exit("Invalid prefix"); in parse_prefix()
481 if (!arg) error_exit("bad hw-addr '%s'", ""); in fill_hwaddr()
485 error_exit("bad hw-addr '%s'", arg); in fill_hwaddr()
530 if (!*argv) error_exit("Invalid vlan id."); in vlan_parse_opt()
579 error_exit("Not enough information: \"dev\" argument is required.\n"); in linkupdate()
581 error_exit("Not enough information: \"type\" argument is required.\n"); in linkupdate()
631 if (len < 2 || len > IFNAMSIZ) error_exit("Invalid device name."); in linkupdate()
648 if (!*argv) error_exit("\"dev\" missing"); in link_set()
771 error_exit("Invalid data."); in print_link_output()
841 if (!lname) error_exit("Invalid link."); in get_link_info()
888 error_exit("Invalid state."); in get_link_info()
1089 error_exit("Incomplete Command line"); in ipaddrupdate()
1120 error_exit("Invalid prefix"); in ipaddrupdate()
1140 error_exit("Invalid prefix"); in ipaddrupdate()
1151 if (scope < 0) error_exit("wrong scope '%s'", *argv); in ipaddrupdate()
1178 if (!dev) error_exit("need \"dev \" argument"); in ipaddrupdate()
1180 error_exit("\"dev\" (%s) must match \"label\" (%s)", dev, label); in ipaddrupdate()
1191 error_exit("broadcast can be set only for IPv4 addresses"); in ipaddrupdate()
1241 error_exit("Incomplete command for \"flush\""); in ipaddr_listflush()
1243 error_exit("Can't flush link Addressess"); in ipaddr_listflush()
1250 if (!*++argv) error_exit("Incomplete Command line"); in ipaddr_listflush()
1265 if (!*++argv) error_exit("Incomplete Command line"); in ipaddr_listflush()
1276 error_exit("wrong scope '%s'", name); in ipaddr_listflush()
1290 if (!*++argv) error_exit("Incomplete Command line"); in ipaddr_listflush()
1294 if (!*++argv) error_exit("Incomplete Command line"); in ipaddr_listflush()
1298 error_exit("Either \"dev\" is duplicate or %s is garbage", in ipaddr_listflush()
1331 error_exit("Device \"%s\" doesn't exist. \n", TT.filter_dev); in ipaddr_listflush()
1464 error_exit(errmsg); in show_iproute_help()
1697 if (!*argv) error_exit("'%s': Missing Prefix", argv[-1]); in route_get()
1726 error_exit("need at least destination address"); in route_get()
1737 if (mhdr->nlmsg_type != RTM_NEWROUTE) error_exit("not a route?"); in route_get()
1738 if (msglen < 0) error_exit("wrong len %d", msglen); in route_get()
1747 } else if (!attr[RTA_SRC]) error_exit("can't connect the route"); in route_get()
1784 error_exit("Invalid argument protocol."); in route_show_flush()
1813 error_exit("table %s is invalid.", *argv); in route_show_flush()
1871 if (fwrite("-1",1,2,fp) < 2) error_exit("can't flush routing cache"); in route_show_flush()
1956 error_exit("Invalid argument protocol %s.",*argv); in route_update()
1972 error_exit("Invalid argument metric %s.",*argv); in route_update()
1986 if (ok & dst_ok) error_exit("Duplicate argument 'to'"); in route_update()
2075 error_exit(errmsg); in show_iprule_help()
2110 if (!*++argv) error_exit("'%s': Missing Prefix", argv[-1]); in ruleupdate()
2128 error_exit("Missing %s", (idx == 2) ? "Preference" : "fwmark"); in ruleupdate()
2131 error_exit("Invalid %s", (idx == 2) ? "Preference" : "fwmark"); in ruleupdate()
2140 if (!*++argv) error_exit("Missing TOS key"); in ruleupdate()
2142 error_exit("Invalid TOS"); in ruleupdate()
2152 if (!*++argv) error_exit("Missing REALMSID"); in ruleupdate()
2156 error_exit("Invalid realms"); in ruleupdate()
2162 error_exit("Invalid realms"); in ruleupdate()
2171 if (!*++argv) error_exit("Missing TableID"); in ruleupdate()
2173 error_exit("Invalid TID"); in ruleupdate()
2180 if (!*++argv) error_exit("Missing dev/iif NAME"); in ruleupdate()
2190 if (!*++argv) error_exit("Missing nat/map-to ADDRESS"); in ruleupdate()
2192 error_exit("Invalid mapping Address"); in ruleupdate()
2201 if (!*++argv) error_exit("TYPE Missing"); in ruleupdate()
2209 error_exit("Invalid argument '%s'", *argv); in ruleupdate()
2324 error_exit(errmsg); in show_iptunnel_help()
2411 error_exit("invalid format of '/proc/net/dev'"); in read_tunnel()
2464 if (!*++argv) error_exit("mode is missing"); in parse_iptunnel_args()
2480 if (!*++argv) error_exit("key value is missing"); in parse_iptunnel_args()
2484 if (ret || !info) error_exit("invalid argument to key"); in parse_iptunnel_args()
2489 error_exit("invalid key '%s'", *argv); in parse_iptunnel_args()
2537 if (!*++argv) error_exit("remote/local address is missing"); in parse_iptunnel_args()
2539 error_exit("invalid remote/local address '%s'", *argv); in parse_iptunnel_args()
2543 if (!*++argv) error_exit("device name is missing"); in parse_iptunnel_args()
2556 if (!*++argv) error_exit("ttl value is missing"); in parse_iptunnel_args()
2562 if (!*++argv) error_exit("tos value is missing"); in parse_iptunnel_args()
2567 if (tval > 255) error_exit("invalid tos value '%s'", *argv); in parse_iptunnel_args()
2572 error_exit("invalid tos value"); in parse_iptunnel_args()
2578 if (*ptnl->name) error_exit("invalid tunnel"); in parse_iptunnel_args()
2580 if (!*++argv) error_exit("name is missing"); in parse_iptunnel_args()
2585 if (*ptnl->name) error_exit("invalid tunnel"); in parse_iptunnel_args()
2593 error_exit("[i|o]key is allowed with gre only"); in parse_iptunnel_args()
2595 error_exit("[i|o]seq is allowed with gre only"); in parse_iptunnel_args()
2597 error_exit("[i|o]csum is allowed with gre only"); in parse_iptunnel_args()
2608 error_exit("broadcast tunnel requires a source address"); in parse_iptunnel_args()
2650 error_exit("ttl > 0 and nopmtudisc are incompatible"); in tunnelupdate()
2658 if (idx != 2) error_exit("invalid tunnel mode"); in tunnelupdate()
2762 error_exit("wrong family '%s'", *optargv); in ip_main()